Skip to content

Commit 592416f

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3115 Function parameters of consteval-only type
1 parent 3187ac9 commit 592416f

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
@@ -5352,6 +5352,8 @@
53525352
an object whose lifetime begins and ends
53535353
during the evaluation of a core constant expression.
53545354
\end{itemize}
5355+
Every function of consteval-only type shall be
5356+
an immediate function\iref{expr.const}.
53555357

53565358
\rSec2[basic.fundamental]{Fundamental types}
53575359

source/expressions.tex

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

91759175
\pnum
9176-
An \defnadj{immediate}{function} is a function that is either
9176+
An \defnadj{immediate}{function} is a function that is
91779177
\begin{itemize}
91789178
\item
9179-
declared with the \keyword{consteval} specifier, or
9179+
declared with the \keyword{consteval} specifier,
9180+
\item
9181+
an immediate-escalating function
9182+
whose type is consteval-only\iref{basic.types.general}, or
91809183
\item
91819184
an immediate-escalating function \tcode{\placeholder{F}}
91829185
whose function body contains either

0 commit comments

Comments
 (0)