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

2023-01-15


1972. Identifier character restrictions in non-identifiers

Section: 5.10  [lex.name]     Status: CD6     Submitter: Richard Smith     Date: 2014-07-15

[Accepted at the June, 2021 meeting as part of paper P1949R7 (C++ Identifier Syntax using Unicode Standard Annex 31).]

According to 5.10 [lex.name] paragraph 1,

Each universal-character-name in an identifier shall designate a character whose encoding in ISO 10646 falls into one of the ranges specified in _N4606_.E.1 [charname.allowed].

However, identifier-nondigit is also used in the grammar for pp-number. Should this restriction also be understood to apply in that non-identifier context?