http://llvm.org/bugs/show_bug.cgi?id=9922
Summary: 'final' pseudo-keyword consumed too greedily
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following example gives a syntax error:
struct foo { };
struct foo final;
It should instead define a variable final of type struct foo, since this is
legal code if we treat 'final' as a regular identifier.
Note also the following code, once we have brace-initializers, is also a
declaration of a variable named final:
struct foo final { };
(Sorry about not having pasted output)
--
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