YuchangSu
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.
`template < template < typename ... X0 , class ... > class X0 > X0 < > ;` See Compiler Explorer: [https://godbolt.org/z/KzxqW1axP](https://godbolt.org/z/KzxqW1axP) It is rejected by GCC, but accepted by...
```c++ template char; ``` See Compiler Explorer: [https://godbolt.org/z/qooY6EcGz](https://godbolt.org/z/qooY6EcGz)
```c++ typedef(( operator | ) ) ( class { private : }); ``` See Compiler Explorer: [https://godbolt.org/z/7oYbzj55e](https://godbolt.org/z/7oYbzj55e)
The code contains malformed C++11 attribute syntax with mismatched brackets/parentheses: [[ X1 ( ] ) ] ] ;. GCC rejects it, but Clang accepts it. Code: ``` [ [ X1...
The code creates an inline namespace `::X0` containing another inline namespace `::X0::X0`. Because inline namespaces inject members into the enclosing namespace for lookup, `::X0::X0` also becomes visible as `::X0` at...
The code uses an attribute-specifier-seq after a class-key in an elaborated type in a type-alias declaration. GCC accepts it, but Clang rejects it. Code: ``` using X1 = class [...
The code contains malformed attribute syntax inside the enum base-specifier: ``` enum X0 : char [[ X1 ( { ) ]] ; ``` GCC rejects it. Clang accepts it and...
The type-id uses a nested reference declarator &(&), which forms a reference to a reference. GCC rejects it, while Clang accepts it. Code: ```c++ using X1 = union { }...
Code: ```c++ enum a explicit(a() ``` See Compiler Explorer: [https://godbolt.org/z/741bcxcMW](https://godbolt.org/z/741bcxcMW) Regression since Clang 12.0.0 Backtrace: ``` #0 0x000000000440ac38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x440ac38) #1 0x0000000004408084 llvm::sys::CleanupOnSignal(unsigned long) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+++0x4408084) #2 0x0000000004347e88 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0...