Skip to content

Commit 41fe001

Browse files
committed
P3533R2 constexpr virtual inheritance
Fixes #7936 Fixes cplusplus/papers#2174
1 parent 4726d67 commit 41fe001

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

source/declarations.tex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -916,14 +916,8 @@
916916
\indextext{specifier!\idxcode{constexpr}!function}%
917917
\indextext{constexpr function}%
918918
A function is \defn{constexpr-suitable} if
919-
\begin{itemize}
920-
\item
921-
it is not a coroutine\iref{dcl.fct.def.coroutine}, and
919+
it is not a coroutine\iref{dcl.fct.def.coroutine}.
922920

923-
\item
924-
if the function is a constructor or destructor,
925-
its class does not have any virtual base classes.
926-
\end{itemize}
927921
Except for instantiated constexpr functions,
928922
non-templated constexpr functions shall be constexpr-suitable.
929923

source/preprocessor.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,7 @@
23012301
\defnxname{cpp_constexpr_dynamic_alloc} & \tcode{201907L} \\ \rowsep
23022302
\defnxname{cpp_constexpr_exceptions} & \tcode{202411L} \\ \rowsep
23032303
\defnxname{cpp_constexpr_in_decltype} & \tcode{201711L} \\ \rowsep
2304+
\defnxname{cpp_constexpr_virtual_inheritance} & \tcode{202506L} \\ \rowsep
23042305
\defnxname{cpp_consteval} & \tcode{202211L} \\ \rowsep
23052306
\defnxname{cpp_constinit} & \tcode{201907L} \\ \rowsep
23062307
\defnxname{cpp_contracts} & \tcode{202502L} \\ \rowsep

0 commit comments

Comments
 (0)