[LLVMbugs] [Bug 13823] New: Crash on invalid: 'tagFromDeclSpec->isThisDeclarationADefinition()'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 12 12:28:35 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13823
Bug #: 13823
Summary: Crash on invalid:
'tagFromDeclSpec->isThisDeclarationADefinition()'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: paul.robinson at am.sony.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9196
--> http://llvm.org/bugs/attachment.cgi?id=9196
crash log
Compiling the following line all by itself:
typedef struct ::sockaddr sockaddr_t;
gives me
error: no struct named 'sockaddr' in the global namespace
which is fine, but then it crashes, which is not fine:
clang:
/home/probinson/projects/llvm-org-tip/llvm/tools/clang/lib/Sema/SemaDecl.cpp:8152:
clang::TypedefDecl* clang::Sema::ParseTypedefDecl(clang::Scope*,
clang::Declarator&, clang::QualType, clang::TypeSourceInfo*): Assertion
`tagFromDeclSpec->isThisDeclarationADefinition()' failed.
Curiously, taking out the 'struct' makes the crash go away.
Crash log attached.
--
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