Issue 183720
Summary [Clang] Accepts malformed attribute in enum base-specifier
Labels clang
Assignees
Reporter YuchangSu
    The code contains malformed attribute syntax inside the enum base-specifier:
```
enum X0 : char [[ X1 ( { ) ]] ;
```
GCC rejects it. Clang accepts it and only emits a warning about an unknown attribute.

See Compiler Explorer:[https://godbolt.org/z/d7oj1xhKe]( https://godbolt.org/z/d7oj1xhKe)

The test case was generated by a fuzzer.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to