Title
hexadecimal-escape-sequence is too greedy
Status
c++23
Section
5.13.3 [lex.ccon]
Submitter
Fraser Gordon

Created on 2023-01-26.00:00:00 last changed 9 months ago

Messages

Date: 2023-01-27.23:50:39

Proposed resolution (approved by CWG 2023-01-27):

Change in 5.13.3 [lex.ccon] as follows:

hexadecimal-escape-sequence :
     \x hexadecimal-digit simple-hexadecimal-digit-sequence
     hexadecimal-escape-sequence hexadecimal-digit
     \x{ simple-hexadecimal-digit-sequence }
Date: 2023-02-15.00:00:00

[Accepted at the February, 2023 meeting.]

The lexer grammar production hexadecimal-escape-sequence matches text of the form \x{20}ab due to its recursive definition.

History
Date User Action Args
2023-07-16 13:00:43adminsetstatus: open -> c++23
2023-07-16 13:00:43adminsetstatus: accepted -> open
2023-02-18 18:43:04adminsetstatus: ready -> accepted
2023-02-07 05:32:28adminsetstatus: tentatively ready -> ready
2023-01-27 23:50:39adminsetstatus: open -> tentatively ready
2023-01-26 19:12:52adminsetmessages: + msg7151
2023-01-26 00:00:00admincreate