Attacker23
Attacker23
The following code has been causing Clang to crash(assertion) since version 11.0.0 and still does in the current trunk (x86‑64). ```cpp struct A { Err& operator=(const A&); }; struct B...
A very old bug: it originates in Clang 3.0.0 (assertions build) and is still reproducible on trunk, while GCC/EDG and MSVC correctly reject the code instead of crashing. ### Minimal...
The following code causes crash on x86-64 clang since 6.0.0, but it doesn’t crash on 12–16: ### Minimal Reproduction ```cpp struct C { template void f() {} }; static_assert(__builtin_classify_type(&C::f)); ```...
Clang (assertions build) crashes with `UNREACHABLE executed at ItaniumMangle.cpp` when a lambda parameter type contains `decltype(...)` of a semantically invalid expression. ## Reproducer 1 (crashes since Clang 21.1.0) https://godbolt.org/z/aK4Td8zzM ```cpp...
Clang **14.0.0 and later** (assertions enabled) crashes when compiling this code in **C++20 mode or later** (`-std=c++20` or newer). ```cpp #include struct Tag {}; struct Y { bool await_ready() const;...
The following code causes crash on x86-64 clang(assertions) since 12.0.0, also reproduces on trunk, GCC/EDG/MSVC do not report an error: ### Minimal Reproduction https://godbolt.org/z/Mn7sbxv6x ```cpp template struct Y { static...
### The following code is rejected by Clang but accepted by GCC, EDG, and MSVC. https://godbolt.org/z/We8WMz7vo ```cpp template struct A { T i, j; }; template void foo () {...
Since **Clang 16.0.0**, Clang accepts the following code, while **GCC / MSVC / EDG** all reject it: ```cpp template struct Wrapper { Wrapper(T) {} }; void f() { class A...
When a GNU attribute is placed **after the declarator** and directly before a bit-field width, Clang rejects the code, while putting the same attribute in other positions works, and GCC/EDG...
Clang rejects this valid C++ code, while GCC, MSVC, and EDG accept it. ```cpp struct A { int arr[1]; }; struct B { const A& a = A{{0}}; }; B...