This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


957. Alternative tokens and attribute-tokens

Section: 9.12.1  [dcl.attr.grammar]     Status: CD2     Submitter: Daveed Vandevoorde     Date: 26 August, 2009

N2800 comment FR 12

[Voted into WP at March, 2010 meeting.]

9.12.1 [dcl.attr.grammar] paragraph 3 specifies that keywords can be used as attribute-tokens. However, the alternative tokens in 5.5 [lex.digraph], such as bitor and compl, are not keywords. The text should be changed to make the alternative tokens acceptable as attribute-tokens as well.

Proposed resolution, October, 2009:

Change 9.12.1 [dcl.attr.grammar] paragraph 3 as follows:

...A If a keyword (5.11 [lex.key]) or an alternative token (5.5 [lex.digraph]) that satisfies the syntactic requirements of an identifier (5.10 [lex.name]) is contained in an attribute-token, it is considered an identifier...