Rush10233
Rush10233
Hello! I’m an active reporter and participant in Clang-related issues on GitHub (llvm/llvm-project). I’m now running a fuzzer on the official tests to uncover new bugs. I thought it would...
The following code is apparently illegal, as the declaration of `A(A)` should be treated as a copy constructor, which forces passing the argument by reference. While clang ignores that error...
The following code compiles normally in clang: ```c++ struct A { int i; }; struct B:A { int j; }; struct C:B { int k; static_assert((int(B::*))&C::k, ""); }; ``` But...
The following code contains an invalid type conversion: ```c++ template struct S { friend void foo (int a = []{ [&](){ return 0; }(); }()) {} }; S t; ```...
clang fails to parse type alias in explicit calling of template member function with `->template `
Please consider the following code: ```c++ template struct A { int a() { return 42; } }; template struct B { using MUT_1 = A; int b(MUT_1 *p) { return...
First, the following code is rejected by clang but accepted by other compilers like GCC, MSVC, and ICC: ```c++ struct base { }; struct derived : virtual base { constexpr...
The following code is accepted by clang but rejected by GCC,MSVC and ICC with the option of `-std=c++11`: ```c++ template struct Base { }; struct Derived : Base { };...
The following code is accepted by clang, which contains an invalid non-static list initialization statement of flexible array member `a[]`: ```c++ struct S { int bb; int a[]; }; void...
Consider the following code: ```c++ template struct QCachedT{ void operator delete(void *, T *) {} }; struct thing_t :private QCachedT{ }; int main() { auto thing=new thing_t; //error //delete thing_t;...
The following code is accepted by clang but rejected by GCC, EDG and MSVC: ```c++ #include template struct C { int x=0; C(){x=1;}; }; int main(){ C Cont; //Cont.x=1 std::cout