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

2025-12-20


3120. Incorrect description for interpreting integer literals

Section: 5.13.2  [lex.icon]     Status: open     Submitter: Masaki Moriguchi     Date: 2025-11-08

(From submission #794.)

The octal integer literal 0 is not covered by the rule in 5.13.2 [lex.icon] paragraph 1.

Possible resolution:

Change in 5.13.2 [lex.icon] paragraph 1 as follows:

In an integer-literal, is are interpreted as a base N integer as shown in Table 7; the lexically first digit of the sequence of digits is the most significant.