Issue |
145250
|
Summary |
[Clang] `int(...)` not parsed as variadic function type
|
Labels |
clang
|
Assignees |
|
Reporter |
fuhsnn
|
Variadic functions can be declared without named parameter since C23, so `int(...)` should be a valid type-name that represent such a function. Clang rejects the following code, GCC accepts.
```
int va_fn(...);
// As typeof() argument
typeof(int(...))*fn_ptr = &va_fn;
// As _Generic association type
int i = _Generic(typeof(va_fn), int(...):1);
```
https://godbolt.org/z/zsc6Yf3GP
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs