| Issue | 114753 |
|---|---|
| Summary | [Clang] Accepts invalid auto on a declaration of class |
| Labels | |
| Assignees | |
| Reporter | YuchangSu |
```
auto class X1 { } ;
```
See Compiler Explorer: [https://godbolt.org/z/3WheK64E3](https://godbolt.org/z/3WheK64E3)
auto can only be specified for variables or function declarations.It is rejected by GCC, but accepted by Clang._______________________________________________ llvm-bugs mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
