Skip to content

Commit c7193c9

Browse files
burblebeetkoeppe
authored andcommitted
CWG2905 Value-dependence of noexcept-expression
1 parent 35569a9 commit c7193c9

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

source/templates.tex

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5446,8 +5446,7 @@
54465446
\keyword{sizeof} \terminal{(} type-id \terminal{)}\br
54475447
\keyword{typeid} \terminal{(} expression \terminal{)}\br
54485448
\keyword{typeid} \terminal{(} type-id \terminal{)}\br
5449-
\keyword{alignof} \terminal{(} type-id \terminal{)}\br
5450-
\keyword{noexcept} \terminal{(} expression \terminal{)}
5449+
\keyword{alignof} \terminal{(} type-id \terminal{)}
54515450
\end{ncsimplebnf}
54525451

54535452
\begin{note}
@@ -5457,20 +5456,28 @@
54575456

54585457
\pnum
54595458
Expressions of the following form are value-dependent if either the
5460-
\grammarterm{type-id}
5461-
or
5462-
\grammarterm{simple-type-specifier}
5459+
\grammarterm{type-id},
5460+
\grammarterm{simple-type-specifier}, or
5461+
\grammarterm{typename-specifier}
54635462
is dependent or the
54645463
\grammarterm{expression}
54655464
or
54665465
\grammarterm{cast-expression}
5466+
is value-dependent or
5467+
any \grammarterm{expression} in the \grammarterm{expression-list}
5468+
is value-dependent or
5469+
any \grammarterm{assignment-expression} in the \grammarterm{braced-init-list}
54675470
is value-dependent:
54685471

54695472
\begin{ncsimplebnf}
54705473
simple-type-specifier \terminal{(} \opt{expression-list} \terminal{)}\br
5474+
typename-specifier \terminal{(} opt{expression-list} \terminal{)}\br
5475+
simple-type-specifier braced-init-list\br
5476+
typename-specifier braced-init-list\br
54715477
\keyword{static_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
54725478
\keyword{const_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
54735479
\keyword{reinterpret_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
5480+
dynamic_cast \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
54745481
\terminal{(} type-id \terminal{)} cast-expression
54755482
\end{ncsimplebnf}
54765483

@@ -5482,6 +5489,11 @@
54825489
fold-expression
54835490
\end{ncsimplebnf}
54845491

5492+
\pnum
5493+
A \grammarterm{noexcept-expression}\iref{expr.unary.noexcept}
5494+
is value-dependent if
5495+
its \grammarterm{expression} involves a template parameter.
5496+
54855497
\pnum
54865498
An expression of the form \tcode{\&}\grammarterm{qualified-id} where the
54875499
\grammarterm{qualified-id} names a dependent member of the current

0 commit comments

Comments
 (0)