| Issue |
164121
|
| Summary |
Auto is incorrectly rejected in C23 when it occurs after the type specifiers in a declaration
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Halalaluyafail3
|
The following program demonstrates the issue:
```c
int main(){
auto long long d1;
long auto long d2;
long long auto d3;
}
```
The order of declaration specifiers in a declaration shouldn't matter, so all 3 declarations should be accepted. However, Clang specifically rejects the third declaration of `d3` and only in C23 mode. GCC and Clang in a pre-C23 mode will accept this code.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs