Title
Rework phases for string literal concatenation and token formation
Status
open
Section
5.2 [lex.phases]
Submitter
US

Created on 2025-10-01.00:00:00 last changed yesterday

Messages

Date: 2025-10-12.08:55:04

Suggested resolution:

Change in 5.2 [lex.phases] paragraph 5 through 7 as follows:

5. For a sequence of two or more adjacent string-literal preprocessing tokens, a common encoding-prefix is determined as specified in 5.13.5 [lex.string]. Each such string-literal preprocessing token is then considered to have that common encoding-prefix. 6. Adjacent Then, adjacent string-literal preprocessing tokens are concatenated (5.13.5 [lex.string]).

7. 6. Each preprocessing token is converted into a token (5.10 [lex.token]).

7. The resulting tokens constitute a translation unit and are syntactically and semantically analyzed as a translation-unit (6.7 [basic.link]) and translated. ...

Date: 2025-10-01.00:00:00
N5028 comment US 6-020
N5028 comment US 7-019

Merge phases 5 and 6, because both deal with the same contiguous sequences of string literals. Then, move the conversion of pp-tokens to tokens into a new phase 6.

History
Date User Action Args
2025-10-12 08:55:04adminsetmessages: + msg8159
2025-10-01 00:00:00admincreate