Issue 89695
Summary void arguments in function types are not accepted
Labels new issue
Assignees
Reporter Halalaluyafail3
    While looking at the behavior for qualified void return types (which clang gets wrong) I found that clang doesn't accept void function arguments. For example:
```c
void f(void x);
```
This code should be valid just like how the following is accepted:
```c
void g(struct undef x);
```
Both `f` and `g` have arguments of incomplete types but that is OK as long as these functions aren't called and because these are not function definitions. However, clang seems to diagnose `f` which is incorrect.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to