Skip to content

Commit 8331083

Browse files
authored
Merge 2025-06 CWG Motion 10
P3533R2 constexpr virtual inheritance
2 parents 729d34b + 1388a45 commit 8331083

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
@@ -947,14 +947,8 @@
947947
\indextext{specifier!\idxcode{constexpr}!function}%
948948
\indextext{constexpr function}%
949949
A function is \defn{constexpr-suitable} if
950-
\begin{itemize}
951-
\item
952-
it is not a coroutine\iref{dcl.fct.def.coroutine}, and
950+
it is not a coroutine\iref{dcl.fct.def.coroutine}.
953951

954-
\item
955-
if the function is a constructor or destructor,
956-
its class does not have any virtual base classes.
957-
\end{itemize}
958952
Except for instantiated constexpr functions,
959953
non-templated constexpr functions shall be constexpr-suitable.
960954

source/preprocessor.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,6 +2328,7 @@
23282328
\defnxname{cpp_constexpr_dynamic_alloc} & \tcode{201907L} \\ \rowsep
23292329
\defnxname{cpp_constexpr_exceptions} & \tcode{202411L} \\ \rowsep
23302330
\defnxname{cpp_constexpr_in_decltype} & \tcode{201711L} \\ \rowsep
2331+
\defnxname{cpp_constexpr_virtual_inheritance} & \tcode{202506L} \\ \rowsep
23312332
\defnxname{cpp_consteval} & \tcode{202211L} \\ \rowsep
23322333
\defnxname{cpp_constinit} & \tcode{201907L} \\ \rowsep
23332334
\defnxname{cpp_contracts} & \tcode{202502L} \\ \rowsep

0 commit comments

Comments
 (0)