Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9643,8 +9643,8 @@
\end{note}

\pnum
\indextext{expression!potentially constant evaluated}%
An expression or conversion is \defn{potentially constant evaluated}
\indextext{expression!potentially constant-evaluated}%
An expression or conversion is \defn{potentially constant-evaluated}
if it is:
\begin{itemize}
\item
Expand Down Expand Up @@ -9679,10 +9679,10 @@
\begin{itemize}
\item
a constexpr function that is named by an expression\iref{basic.def.odr}
that is potentially constant evaluated, or
that is potentially constant-evaluated, or

\item
a potentially-constant variable named by a potentially constant evaluated expression.
a potentially-constant variable named by a potentially constant-evaluated expression.
\end{itemize}

\pnum
Expand Down
2 changes: 1 addition & 1 deletion source/templates.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6800,7 +6800,7 @@
template<bool B, typename T> void h(decltype(int{B ? f<T>() : 0}));
template<bool B, typename T> void h(...);
void x() {
g<false, int>(0); // OK, \tcode{B ? f<T>() :\ 0} is not potentially constant evaluated
g<false, int>(0); // OK, \tcode{B ? f<T>() :\ 0} is not potentially constant-evaluated
h<false, int>(0); // error, instantiates \tcode{f<int>} even though \tcode{B} evaluates to \tcode{false} and
// list-initialization of \tcode{int} from \tcode{int} cannot be narrowing
}
Expand Down
Loading