[LLVMbugs] [Bug 10026] New: crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 26 13:39:09 PDT 2011


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

           Summary: crash
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jbulow-llvm at jongel.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


In SemaTemplateInstantiateDecl.cpp (rev 132089) in function
Sema::InstantiateFunctionDefinition the use of PatternDecl is not always
checked for NULL before use. 

I have some proprietary code which triggers PattermDecl = NULL.  The crash
happens on line 2344:

if (!Pattern && !PatternDecl->isDefaulted()) {

I'm sorry about the lack of details in this report.

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