[clang] [Clang][C++23] Implement P2448R2: Relaxing some constexpr restrictions (PR #77753)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 07:17:24 PST 2024


================
@@ -2774,9 +2774,13 @@ def err_constexpr_tag : Error<
 def err_constexpr_dtor : Error<
   "destructor cannot be declared %sub{select_constexpr_spec_kind}0">;
 def err_constexpr_dtor_subobject : Error<
-  "destructor cannot be declared %sub{select_constexpr_spec_kind}0 because "
+  "destructor cannot be declared %sub{select_constexpr_spec_kind}0 before C++23 because "
   "%select{data member %2|base class %3}1 does not have a "
   "constexpr destructor">;
+def warn_cxx20_compat_constexpr_dtor_subobject : Warning<
----------------
Fznamznon wrote:

Done too.

https://github.com/llvm/llvm-project/pull/77753


More information about the cfe-commits mailing list