[LLVMbugs] [Bug 9922] New: 'final' pseudo-keyword consumed too greedily
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 15 12:02:00 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: scshunt at csclub.uwaterloo.ca
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list