[LLVMbugs] [Bug 12688] New: Clang crashes on valid C++11 code when in C++98 mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 27 20:29:21 PDT 2012


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

             Bug #: 12688
           Summary: Clang crashes on valid C++11 code when in C++98 mode
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rtrieu at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


namespace name __attribute__ ((__visibility__ ("default")))
{
    class foo
    {
      constexpr foo() throw() { }
    };
}

This valid C++11 code will cause Clang to crash in C++98 mode.  The source of
this crash appears to be at ParseCXXInlineMethods.cpp:372, a dyn_cast of
LM.Method which happens to be null.

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