Skip to content

Commit d7c37a0

Browse files
burblebeetkoeppe
authored andcommitted
CWG2647 Fix for "needed for constant evaluation"
Fixes NB US 047 (C++23 CD).
1 parent ef668df commit d7c37a0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/expressions.tex

+2-4
Original file line numberDiff line numberDiff line change
@@ -7326,7 +7326,7 @@
73267326
\pnum
73277327
A variable is \defn{potentially-constant} if
73287328
it is constexpr or
7329-
it has reference or const-qualified integral or enumeration type.
7329+
it has reference or non-volatile const-qualified integral or enumeration type.
73307330

73317331
\pnum
73327332
A constant-initialized potentially-constant variable $V$ is
@@ -7937,9 +7937,7 @@
79377937
that is potentially constant evaluated, or
79387938

79397939
\item
7940-
a variable named by a potentially constant evaluated expression
7941-
that is either a constexpr variable or
7942-
is of non-volatile const-qualified integral type or of reference type.
7940+
a potentially-constant variable named by a potentially constant evaluated expression.
79437941
\end{itemize}
79447942

79457943
\indextext{expression|)}

0 commit comments

Comments
 (0)