Skip to content

Commit 5850cd5

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3086 Destringizing should consider all sorts of encoding-prefixes
Fixes NB US 60-110 (C++26 CD).
1 parent fb6d393 commit 5850cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/preprocessor.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,12 +2481,12 @@
24812481
\indextext{operator!pragma|see{macro, pragma operator}}
24822482

24832483
\pnum
2484-
A unary operator expression of the form:
2484+
A unary operator expression of the form
24852485
\begin{ncbnf}
24862486
\terminal{_Pragma} \terminal{(} string-literal \terminal{)}
24872487
\end{ncbnf}
24882488
is processed as follows: The \grammarterm{string-literal} is \defnx{destringized}{destringization}
2489-
by deleting the \tcode{L} prefix, if present, deleting the leading and trailing
2489+
by deleting any \grammarterm{encoding-prefix}, deleting the leading and trailing
24902490
double-quotes, replacing each escape sequence \tcode{\textbackslash"} by a double-quote, and
24912491
replacing each escape sequence \tcode{\textbackslash\textbackslash} by a single
24922492
backslash. The resulting sequence of characters is processed through translation phase 3

0 commit comments

Comments
 (0)