Skip to content

Commit 1296bb4

Browse files
committed
CWG2647 Fix for "needed for constant evaluation"
Also fixes NB US 17-047 (C++23 CD).
1 parent 901c797 commit 1296bb4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/expressions.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7309,7 +7309,7 @@
73097309
\pnum
73107310
A variable is \defn{potentially-constant} if
73117311
it is constexpr or
7312-
it has reference or const-qualified integral or enumeration type.
7312+
it has reference or non-volatile const-qualified integral or enumeration type.
73137313

73147314
\pnum
73157315
A constant-initialized potentially-constant variable $V$ is
@@ -7924,9 +7924,7 @@
79247924
that is potentially constant evaluated, or
79257925

79267926
\item
7927-
a variable named by a potentially constant evaluated expression
7928-
that is either a constexpr variable or
7929-
is of non-volatile const-qualified integral type or of reference type.
7927+
a potentially-constant variable named by a potentially constant evaluated expression.
79307928
\end{itemize}
79317929

79327930
\indextext{expression|)}

0 commit comments

Comments
 (0)