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

2024-12-19


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.9 [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.12 [lex.key]) or an alternative token (5.9 [lex.digraph]) that satisfies the syntactic requirements of an identifier (5.11 [lex.name]) is contained in an attribute-token, it is considered an identifier...