Issue2249

Title 2249. identifiers and id-expressions
Status open Section 5.1.4.1 [expr.prim.id.unqual]
Submitter Robert Haberlach

Created on 2016-03-17.00:00:00 by admin, last changed by admin.

Messages
msg5877 (view) Date: 2016-03-17.00:00:00

According to 5.1.4.1 [expr.prim.id.unqual] paragraph 1,

An identifier is an id-expression provided it has been suitably declared (Clause 7 [dcl.dcl]).

Not only is an identifier an id-expression by (grammatical) definition, declarator-id is defined in terms of id-expression, which makes this circular. If the intention was to disallow use of undeclared identifiers as primary expressions, this should be altered accordingly.

History
Date User Action Args
2016-03-17 00:00:00admincreate