You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: error: default member initializer for 'np1' uses itself
template struct e {
^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation of default member initializer 'e::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation of default member initializer 'e::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:3:13: note: implicit default constructor for 'e' first required here
int np1 = e();
^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:5:12: note: implicit default constructor for 'e' first required here
e a = e();
^
Extended Description
Fuzzing discovered that the attached test case, when given as input to
clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm
causes this assertion failure:
clang-3.6: tools/clang/include/clang/AST/Decl.h:2299: void clang::FieldDecl::setInClassInitializer(clang::Expr *): Assertion `hasInClassInitializer() && InitStorage.getPointer() == nullptr && "bit width, initializer or captured type already set"' failed.
The text was updated successfully, but these errors were encountered: