Skip to content

Commit f60570c

Browse files
[expr.const] Fix (variable) "usable in constant expressions" definition domain
1 parent a17af3e commit f60570c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/expressions.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8431,9 +8431,10 @@
84318431
it has reference or non-volatile const-qualified integral or enumeration type.
84328432

84338433
\pnum
8434-
A constant-initialized potentially-constant variable $V$ is
8434+
A variable $V$ is
84358435
\defnx{usable in constant expressions}{usable in constant expressions!variable} at a point $P$ if
8436-
$V$'s initializing declaration $D$ is reachable from $P$ and
8436+
$V$ is constant-initialized and potentially-constant,
8437+
$V$'s initializing declaration $D$ is reachable from $P$, and
84378438
\begin{itemize}
84388439
\item $V$ is constexpr,
84398440
\item $V$ is not initialized to a TU-local value, or

0 commit comments

Comments
 (0)