This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116c. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-03-08
(From submission #673.)
Subclause 6.1 [basic.pre] paragraph 3 specifies:
A name is an identifier (5.11 [lex.name]), conversion-function-id (11.4.8.3 [class.conv.fct]), operator-function-id (12.4 [over.oper]), or literal-operator-id (12.6 [over.literal]).
That seems to incorrectly include identifier labels per the grammar in 8.2 [stmt.label] paragraph 1 as well as attributes per the grammar in 9.12.1 [dcl.attr.grammar] paragraph 1.
Possible resolution:
Change in 6.1 [basic.pre] paragraph 3 as follows and add bullets:
A name is
- an identifier (5.11 [lex.name]) other than the identifier of a label or attribute-token,
- conversion-function-id (11.4.8.3 [class.conv.fct]),
- operator-function-id (12.4 [over.oper]), or
- literal-operator-id (12.6 [over.literal]).