| Issue |
183473
|
| Summary |
[Clang] accepts malformed attribute syntax [[X1(])]]
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
YuchangSu
|
The code contains malformed C++11 attribute syntax with mismatched brackets/parentheses: [[ X1 ( ] ) ] ] ;. GCC rejects it, but Clang accepts it.
Code:
```
[ [ X1 ( ] ) ] ] ;
```
See Compiler Explorer: [https://godbolt.org/z/Td6nrxW6z](https://godbolt.org/z/Td6nrxW6z)
Regression since Clang 6
The test case was generated by a fuzzer.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs