| Issue |
64713
|
| Summary |
Clang hangs up for an obscure though valid function declaration
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
tstanisl
|
The compilation of the C code below hangs forever for clang's version >= 15. See [godbolt](https://godbolt.org/z/GvdqoEKjG).
```
typeof(int(int)) x, y;
```
The code is equivalent to:
```
int x(int);
int y(int);
```
When compiled in C23 mode (`-std=c2x`) where `typeof` is a keyword then a following error message is produced.
```
error: expected function body after function declarator
```
The error message is incorrect because AFAIK the code is strictly compliant to C23 standard.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs