From c2b8f79744b88fa6839c84f783248a461b4924b3 Mon Sep 17 00:00:00 2001 From: timsong-cpp Date: Tue, 21 Apr 2026 22:20:43 -0500 Subject: [PATCH] [expr.const.defns,temp.inst] Hyphenate "potentially constant evaluated" --- source/expressions.tex | 8 ++++---- source/templates.tex | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/expressions.tex b/source/expressions.tex index ea8b1848a5..1e2e4752c5 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -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 @@ -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 diff --git a/source/templates.tex b/source/templates.tex index b5c2e93340..5b8f5923b4 100644 --- a/source/templates.tex +++ b/source/templates.tex @@ -6800,7 +6800,7 @@ template void h(decltype(int{B ? f() : 0})); template void h(...); void x() { - g(0); // OK, \tcode{B ? f() :\ 0} is not potentially constant evaluated + g(0); // OK, \tcode{B ? f() :\ 0} is not potentially constant-evaluated h(0); // error, instantiates \tcode{f} even though \tcode{B} evaluates to \tcode{false} and // list-initialization of \tcode{int} from \tcode{int} cannot be narrowing }