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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs