[LLVMbugs] [Bug 12813] New: segfault (no assertion) in Sema::CheckFunctionDeclaration on invalid input

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 13 20:52:59 PDT 2012


             Bug #: 12813
           Summary: segfault (no assertion) in
                    Sema::CheckFunctionDeclaration on invalid input
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hfinkel at anl.gov
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang trunk segfaults (no assertion) on this invalid C code (provided by Craig

extern int f(int x) __attribute__ ((__mode__ (__HI__)));extern int f(int x);

start of the backtrace is:
#0  0x0000000000cec292 in clang::FunctionType::getResultType (this=0x0)
#1  0x0000000000db757e in clang::FunctionDecl::getResultType (this=0x408cd30)
#2  0x0000000000ffc184 in clang::Sema::CheckFunctionDeclaration
(this=0x40a1fe0, S=0x40a67f0, NewFD=0x408cd30, Previous=..., 
    IsExplicitSpecialization=false) at

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