Skip to content

Commit 1348564

Browse files
burblebeetkoeppe
authored andcommitted
CWG2911 Unclear meaning of expressions "appearing within" subexpressions
1 parent 8b66da2 commit 1348564

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/expressions.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@
434434
\pnum
435435
\label{term.unevaluated.operand}%
436436
In some contexts, \defnx{unevaluated operands}{unevaluated operand}
437-
appear\iref{expr.prim.req,
437+
appear\iref{expr.prim.req.simple,
438+
expr.prim.req.compound,
438439
expr.typeid,
439440
expr.sizeof,
440441
expr.unary.noexcept,
@@ -2906,8 +2907,6 @@
29062907
\pnum
29072908
A \grammarterm{requires-expression} is a prvalue of type \tcode{bool}
29082909
whose value is described below.
2909-
Expressions appearing within a \grammarterm{requirement-body}
2910-
are unevaluated operands\iref{term.unevaluated.operand}.
29112910

29122911
\pnum
29132912
\begin{example}
@@ -2999,10 +2998,10 @@
29992998
\pnum
30002999
A \grammarterm{simple-requirement} asserts
30013000
the validity of an \grammarterm{expression}.
3001+
The \grammarterm{expression} is an unevaluated operand.
30023002
\begin{note}
30033003
The enclosing \grammarterm{requires-expression} will evaluate to \keyword{false}
30043004
if substitution of template arguments into the \grammarterm{expression} fails.
3005-
The \grammarterm{expression} is an unevaluated operand\iref{term.unevaluated.operand}.
30063005
\end{note}
30073006
\begin{example}
30083007
\begin{codeblock}
@@ -3070,7 +3069,9 @@
30703069

30713070
\pnum
30723071
A \grammarterm{compound-requirement} asserts properties
3073-
of the \grammarterm{expression} $E$. Substitution
3072+
of the \grammarterm{expression} $E$.
3073+
The \grammarterm{expression} is an unevaluated operand.
3074+
Substitution
30743075
of template arguments (if any) and verification of
30753076
semantic properties proceed in the following order:
30763077

0 commit comments

Comments
 (0)