Skip to content

Commit 1bdc388

Browse files
[expr.const] Check the result object of a prvalue
1 parent 1be4801 commit 1bdc388

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
@@ -7764,38 +7764,38 @@
77647764
A \defnadj{constant}{expression} is either
77657765
a glvalue core constant expression that refers to
77667766
an entity that is a permitted result of a constant expression (as defined below), or
7767-
a prvalue core constant expression whose value
7767+
a prvalue core constant expression whose result object\iref{basic.lval}
77687768
satisfies the following constraints:
77697769
\begin{itemize}
77707770
\item
7771-
if the value is an object of class type,
7771+
if the result object is an object of class type,
77727772
each non-static data member of reference type refers to
77737773
an entity that is a permitted result of a constant expression,
77747774

77757775
\item
7776-
if the value is an object of scalar type,
7776+
if the result object is an object of scalar type,
77777777
it does not have an indeterminate value\iref{basic.indet},
77787778

77797779
\item
7780-
if the value is of pointer type, it contains
7780+
if the result object is of pointer type, it contains
77817781
the address of an object with static storage duration,
77827782
the address past the end of such an object\iref{expr.add},
77837783
the address of a non-immediate function,
77847784
or a null pointer value,
77857785

77867786
\item
7787-
if the value is of pointer-to-member-function type,
7787+
if the result object is of pointer-to-member-function type,
77887788
it does not designate an immediate function, and
77897789

77907790
\item
7791-
if the value is an object of class or array type,
7792-
each subobject satisfies these constraints for the value.
7791+
if the result object is an object of class or array type,
7792+
each subobject satisfies these constraints for the result object.
77937793
\end{itemize}
77947794
An entity is a
77957795
\defnx{permitted result of a constant expression}{constant expression!permitted result of}
77967796
if it is an
77977797
object with static storage duration that either is not a temporary object or is
7798-
a temporary object whose value satisfies the above constraints, or if
7798+
a temporary object that satisfies the above constraints, or if
77997799
it is a non-immediate function.
78007800
\begin{note}
78017801
A glvalue core constant expression

0 commit comments

Comments
 (0)