Skip to content

Commit 55016c2

Browse files
burblebeetkoeppe
authored andcommitted
CWG2798 Manifestly constant evaluation of the static_assert message
1 parent 4cba24d commit 55016c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
\begin{bnf}
7878
\nontermdef{static_assert-message}\br
7979
unevaluated-string\br
80-
conditional-expression
80+
constant-expression
8181
\end{bnf}
8282

8383
\begin{bnf}
@@ -291,7 +291,7 @@
291291
the program is ill-formed, and
292292
\item
293293
if the \grammarterm{static_assert-message} is
294-
a \grammarterm{conditional-expression} $M$,
294+
a \grammarterm{constant-expression} $M$,
295295
\begin{itemize}
296296
\item
297297
\tcode{$M$.size()} shall be a converted constant expression of

source/expressions.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8099,7 +8099,8 @@
80998099
\end{example}
81008100
\end{itemize}
81018101
\begin{note}
8102-
A manifestly constant-evaluated expression
8102+
Except for a \grammarterm{static_assert-message},
8103+
a manifestly constant-evaluated expression
81038104
is evaluated even in an unevaluated operand\iref{term.unevaluated.operand}.
81048105
\end{note}
81058106

0 commit comments

Comments
 (0)