http://llvm.org/bugs/show_bug.cgi?id=18127
Bug ID: 18127
Summary: misparse of 'new struct S < ...' where S is not a
template-name
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang rejects this valid code:
struct S {};
bool b = new struct S<0;
We need to actually check whether the name in a tag is a template-name before
trying to parse it as a simple-template-id.
--
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