Title
When is the restriction to a single c-char in a Unicode literal enforced?
Status
cd6
Section
5.13.3 [lex.ccon]
Submitter
Richard Smith

Created on 2019-01-08.00:00:00 last changed 20 months ago

Messages

Date: 2020-11-15.00:00:00

[Adopted at the November, 2020 meeting as part of paper P2029R4.]

According to 5.13.3 [lex.ccon] paragraphs 3-5, a Unicode character literal “containing multiple c-chars is ill-formed.” However, it is not clear in what phase of translation that restriction applies.

One possible resolution would be to add a note saying that the pp-token is formed according to the grammar and the restriction to a single c-char is checked in phase 7.

History
Date User Action Args
2022-08-19 07:54:33adminsetstatus: wp -> cd6
2021-02-24 00:00:00adminsetstatus: drafting -> wp
2019-01-08 00:00:00admincreate