[Clang] accepts malformed attribute syntax [[X1(])]]
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
Regression since Clang 6
The test case was generated by a fuzzer.
@llvm/issue-subscribers-c-11
Author: None (YuchangSu)
Code:
[ [ X1 ( ] ) ] ] ;
See Compiler Explorer: https://godbolt.org/z/Td6nrxW6z
Regression since Clang 6
The test case was generated by a fuzzer.
@llvm/issue-subscribers-clang-frontend
Author: None (YuchangSu)
Code:
[ [ X1 ( ] ) ] ] ;
See Compiler Explorer: https://godbolt.org/z/Td6nrxW6z
Regression since Clang 6
The test case was generated by a fuzzer.