Skip to content

Commit 7eb1d52

Browse files
[expr.const] Check the result object of a prvalue
1 parent 47c2f68 commit 7eb1d52

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/expressions.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7929,38 +7929,38 @@
79297929
A \defnadj{constant}{expression} is either
79307930
a glvalue core constant expression that refers to
79317931
an entity that is a permitted result of a constant expression (as defined below), or
7932-
a prvalue core constant expression whose value
7932+
a prvalue core constant expression whose result object\iref{basic.lval}
79337933
satisfies the following constraints:
79347934
\begin{itemize}
79357935
\item
7936-
if the value is an object of class type,
7936+
if the result object is an object of class type,
79377937
each non-static data member of reference type refers to
79387938
an entity that is a permitted result of a constant expression,
79397939

79407940
\item
7941-
if the value is an object of scalar type,
7941+
if the result object is an object of scalar type,
79427942
it does not have an indeterminate or erroneous value\iref{basic.indet},
79437943

79447944
\item
7945-
if the value is of pointer type, it contains
7945+
if the result object is of pointer type, it contains
79467946
the address of an object with static storage duration,
79477947
the address past the end of such an object\iref{expr.add},
79487948
the address of a non-immediate function,
79497949
or a null pointer value,
79507950

79517951
\item
7952-
if the value is of pointer-to-member-function type,
7952+
if the result object is of pointer-to-member-function type,
79537953
it does not designate an immediate function, and
79547954

79557955
\item
7956-
if the value is an object of class or array type,
7957-
each subobject satisfies these constraints for the value.
7956+
if the result object is an object of class or array type,
7957+
each subobject satisfies these constraints for the result object.
79587958
\end{itemize}
79597959
An entity is a
79607960
\defnx{permitted result of a constant expression}{constant expression!permitted result of}
79617961
if it is an
79627962
object with static storage duration that either is not a temporary object or is
7963-
a temporary object whose value satisfies the above constraints, or if
7963+
a temporary object that satisfies the above constraints, or if
79647964
it is a non-immediate function.
79657965
\begin{note}
79667966
A glvalue core constant expression

0 commit comments

Comments
 (0)