Skip to content

Commit f9ef4d7

Browse files
jensmaurertkoeppe
authored andcommitted
P2246R1 Character encoding of diagnostic text
1 parent 61a00ea commit f9ef4d7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

source/declarations.tex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,8 @@
232232
If the value of the expression when
233233
so converted is \tcode{true}, the declaration has no
234234
effect. Otherwise, the program is ill-formed, and the resulting
235-
diagnostic message\iref{intro.compliance} shall include the text of
236-
the \grammarterm{string-literal}, if one is supplied,
237-
except that characters not in the basic
238-
source character set\iref{lex.charset} are not required to appear in
239-
the diagnostic message.
235+
diagnostic message\iref{intro.compliance} should include the text of
236+
the \grammarterm{string-literal}, if one is supplied.
240237
\begin{example}
241238
\begin{codeblock}
242239
static_assert(sizeof(int) == sizeof(void*), "wrong pointer size");

source/preprocessor.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@
16071607
\terminal{\# error} \opt{pp-tokens} new-line
16081608
\end{ncsimplebnf}
16091609
causes the implementation to produce
1610-
a diagnostic message that includes the specified sequence of preprocessing tokens,
1610+
a diagnostic message that should include the specified sequence of preprocessing tokens,
16111611
and renders the program ill-formed.
16121612

16131613
\rSec1[cpp.pragma]{Pragma directive}%

0 commit comments

Comments
 (0)