http://llvm.org/bugs/show_bug.cgi?id=12813
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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
clang trunk segfaults (no assertion) on this invalid C code (provided by Craig
Schroeder):
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)
at/src/llvm-trunk-writable/tools/clang/lib/Serialization/../../include/clang/AST/Type.h:2678
#1 0x0000000000db757e in clang::FunctionDecl::getResultType (this=0x408cd30)
at
/src/llvm-trunk-writable/tools/clang/lib/CodeGen/../../include/clang/AST/Decl.h:1839
#2 0x0000000000ffc184 in clang::Sema::CheckFunctionDeclaration
(this=0x40a1fe0, S=0x40a67f0, NewFD=0x408cd30, Previous=...,
IsExplicitSpecialization=false) at
/src/llvm-trunk-writable/tools/clang/lib/Sema/SemaDecl.cpp:5761
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs