Skip to content

Commit 6d83608

Browse files
committed
[dcl.pre] Add missing markup that makes "fails" a definition.
This change was missed from the application of CWG2518. Also fixes the indexing of "static_assert" (which is a keyword, not a grammar production).
1 parent 4b06b25 commit 6d83608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
\end{note}
252252

253253
\pnum
254-
\indextext{\idxgram{static_assert}}%
254+
\indextext{\idxcode{static_assert}}%
255255
In a \grammarterm{static_assert-declaration},
256256
the \grammarterm{constant-expression}
257257
is contextually converted to \keyword{bool} and
@@ -261,7 +261,7 @@
261261
or the expression is evaluated in the context of a template definition,
262262
the declaration has no
263263
effect. Otherwise,
264-
the \grammarterm{static_assert-declaration} fails,
264+
the \grammarterm{static_assert-declaration} \defnx{fails}{\idxcode{static_assert}!failed},
265265
the program is ill-formed, and the resulting
266266
diagnostic message\iref{intro.compliance} should include the text of
267267
the \grammarterm{string-literal}, if one is supplied.

0 commit comments

Comments
 (0)