Issue 183886
Summary [Clang] Accepts invalid reference declarator in type-id
Labels clang
Assignees
Reporter YuchangSu
    The type-id uses a nested reference declarator &(&), which forms a reference to a reference. GCC rejects it, while Clang accepts it.
Code:
```
using X1 = union { } & ( & ) ;
```

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

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