http://llvm.org/bugs/show_bug.cgi?id=12061
Bug #: 12061
Summary: Assertion failed: ((!Initializer ||
isa<ImplicitValueInitExpr>(Initializer) ||
isa<CXXConstructExpr>(Initializer)) && "Initializer
expression that cannot have been implicitly created.")
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 8088
--> http://llvm.org/bugs/attachment.cgi?id=8088
delta-reduced example
Attached is a delta-reduced example that crashes clang with an assertion
failure:
Assertion failed: ((!Initializer || isa<ImplicitValueInitExpr>(Initializer) ||
isa<CXXConstructExpr>(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
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs