Skip to content

Commit aba9530

Browse files
committed
CWG3115 Function parameters of consteval-only type
1 parent ab94dc8 commit aba9530

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

source/basic.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5343,6 +5343,8 @@
53435343
an object whose lifetime begins and ends
53445344
during the evaluation of a core constant expression.
53455345
\end{itemize}
5346+
Every function of consteval-only type shall be
5347+
an immediate function\iref{expr.const}.
53465348

53475349
\rSec2[basic.fundamental]{Fundamental types}
53485350

source/expressions.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9146,10 +9146,13 @@
91469146
in an immediate-escalating function.
91479147

91489148
\pnum
9149-
An \defnadj{immediate}{function} is a function that is either
9149+
An \defnadj{immediate}{function} is a function that is
91509150
\begin{itemize}
91519151
\item
9152-
declared with the \keyword{consteval} specifier, or
9152+
declared with the \keyword{consteval} specifier,
9153+
\item
9154+
an immediate-escalating function
9155+
whose type is consteval-only\iref{basic.types.general}, or
91539156
\item
91549157
an immediate-escalating function \tcode{\placeholder{F}}
91559158
whose function body contains either

0 commit comments

Comments
 (0)