[LLVMbugs] [Bug 9903] New: Member function typedef on weird declaration crash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 11 20:11:35 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9903
Summary: Member function typedef on weird declaration crash
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: scshunt at csclub.uwaterloo.ca
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following crashes clang:
struct foo {
typedef void bar() try { }
};
This is because the error recovery for a typedef in
Parser::ParseCXXClassMemberDeclaration (around line 1650 or so of
ParseDeclCXX.cpp) incorrectly assumes it's looking at a left brace and crashes
on ConsumeBrace().
--
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