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
Attached is a delta-reduced example that crashes clang with an assertion failure:
Assertion failed: ((!Initializer || isa(Initializer) || isa(Initializer)) && "Initializer expression that cannot have been implicitly created."), function BuildCXXNew, file /Users/kremenek/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp, line 1023.
While this is invalid code, this assertion failure occurred on the original example which was well-formed.
I believe this is a potential regression related to the generalized initializers work.
To reproduce:
% clang -fsyntax-only reduced.ii
The text was updated successfully, but these errors were encountered:
Fixed in r151146. Now compiles Matt's and Nico's test cases cleanly, and doesn't crash on Ted's (there's no way to compile that one cleanly). Also works with a variant of Matt's case with two default arguments.
Extended Description
Attached is a delta-reduced example that crashes clang with an assertion failure:
Assertion failed: ((!Initializer || isa(Initializer) || isa(Initializer)) && "Initializer expression that cannot have been implicitly created."), function BuildCXXNew, file /Users/kremenek/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp, line 1023.
While this is invalid code, this assertion failure occurred on the original example which was well-formed.
I believe this is a potential regression related to the generalized initializers work.
To reproduce:
% clang -fsyntax-only reduced.ii
The text was updated successfully, but these errors were encountered: