[PATCH] libstdc++: Fix constexpr exceptions for -fno-exceptions
Jonathan Wakely
jwakely@redhat.com
Fri Jul 11 13:26:28 GMT 2025
On Fri, 11 Jul 2025 at 14:19, Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Fri, Jul 11, 2025 at 01:47:18PM +0100, Jonathan Wakely wrote:
> Thanks for doing this.
>
> > @@ -301,8 +301,9 @@ namespace std _GLIBCXX_VISIBILITY(default)
> > _GLIBCXX26_CONSTEXPR exception_ptr
> > make_exception_ptr(_Ex __ex) _GLIBCXX_USE_NOEXCEPT
> > {
> > -#if __cplusplus >= 202400L
> > +#if __cpp_lib_exception_ptr_cast >= 202506L
>
> Just not sure how is make_exception_ptr related to
> __cpp_lib_exception_ptr_cast.
> Perhaps __cpp_constexpr_exceptions >= 202411L ?
Oops, I meant to use
#if __cpp_lib_constexpr_exceptions >= 202411L
i.e. the lib macro not the core one.
More information about the Libstdc++
mailing list