Skip to content

Commit f7e25e5

Browse files
committed
CWG2479 Missing specifications for consteval and constinit
1 parent 057b5f6 commit f7e25e5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6432,7 +6432,7 @@
64326432
The linkage\iref{basic.link} of \tcode{main} is
64336433
\impldef{linkage of \tcode{main}}. A program that defines \tcode{main} as
64346434
deleted or that declares \tcode{main} to be
6435-
\keyword{inline}, \keyword{static}, or \keyword{constexpr} is ill-formed.
6435+
\keyword{inline}, \keyword{static}, \keyword{constexpr}, or \keyword{consteval} is ill-formed.
64366436
The function \tcode{main} shall not be a coroutine\iref{dcl.fct.def.coroutine}.
64376437
The \tcode{main} function shall not be declared with a
64386438
\grammarterm{linkage-specification}\iref{dcl.link}.

source/classes.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,12 @@
11411141
\end{itemize}
11421142
Constructors do not have names.
11431143
In a constructor declaration, each \grammarterm{decl-specifier} in the optional
1144-
\grammarterm{decl-specifier-seq} shall be \keyword{friend}, \keyword{inline},
1145-
\keyword{constexpr}, or an \grammarterm{explicit-specifier}.
1144+
\grammarterm{decl-specifier-seq} shall be
1145+
\keyword{friend},
1146+
\keyword{inline},
1147+
\keyword{constexpr},
1148+
\keyword{consteval}, or
1149+
an \grammarterm{explicit-specifier}.
11461150
\begin{example}
11471151
\begin{codeblock}
11481152
struct S {

source/declarations.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,6 +2617,8 @@
26172617
\keyword{inline},
26182618
\keyword{virtual},
26192619
\keyword{constexpr},
2620+
\keyword{consteval},
2621+
\keyword{constinit},
26202622
or
26212623
\tcode{typedef}
26222624
specifier

0 commit comments

Comments
 (0)