[LLVMbugs] [Bug 12549] New: Internal compiler error, suspect from constexpr or intializer-list support

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 13 06:14:37 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12549

             Bug #: 12549
           Summary: Internal compiler error, suspect from constexpr or
                    intializer-list support
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: public at alisdairm.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8384
  --> http://llvm.org/bugs/attachment.cgi?id=8384
small program that causes the compiler to assert

The attached code crashes the Clang compiler in -std=c++11 mode with the
following assertion:

Assertion failed: (Kind.getKind() == InitializationKind::IK_Copy ||
Kind.isExplicitCast()), function Perform, file SemaInit.cpp, line 4803.

Tested with Clang built by MacPorts, reported version info:
   clang version 3.1 (trunk 153754)
   Target: x86_64-apple-darwin11.3.0
   Thread model: posix

The program is known to compile and run with gcc 4.7.

-- 
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