[PATCH] libstdc++: Make __cpp_lib_constexpr_exceptions depend on cxx11 ABI
Jakub Jelinek
jakub@redhat.com
Wed Dec 17 14:20:33 GMT 2025
On Wed, Dec 17, 2025 at 02:15:59PM +0000, Jonathan Wakely wrote:
> The COW std::string is not constexpr, so the <stdexcept> exception
> classes can't be constexpr either when they're defined in terms of the
> COW string.
>
> libstdc++-v3/ChangeLog:
>
> * include/bits/version.def (constexpr_exceptions): Add
> cxx11abi=yes.
> * include/bits/version.h: Regenerate.
LGTM, thanks.
While constexpr exceptions for <typeinfo>/<new>/<exception> classes
would work, __cpp_constexpr_exceptions >= 202411L covers even
<stdexcept>, so when we can't support it fully, we shouldn't announce it.
Jakub
More information about the Libstdc++
mailing list