[LLVMbugs] [Bug 12061] New: Assertion failed: ((!Initializer || isa<ImplicitValueInitExpr>(Initializer) || isa<CXXConstructExpr>(Initializer)) && "Initializer expression that cannot have been implicitly created.")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 21 13:53:09 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: kremenek at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list