[PATCH] libstdc++: Fix -fno-exceptions support in testsuite_allocator.h
Jonathan Wakely
jwakely@redhat.com
Thu May 28 14:06:15 GMT 2026
On Thu, 28 May 2026 at 15:05, Jonathan Wakely <jwakely@redhat.com> wrote:
>
> On Thu, 28 May 2026 at 14:41, Patrick Palka <ppalka@redhat.com> wrote:
> >
> > On Thu, 28 May 2026, Patrick Palka wrote:
> >
> > > OK for trunk?
> > >
> > > -- >8 --
> > >
> > > This fixes the error
> > >
> > > .../testsuite_allocator.h:402:13: error: exception handling disabled, use ‘-fexceptions’ to enable
> > > 402 | catch(...)
> > > | ^~~~~
> > >
> > > seen when running some C++23 library tests with -fno-exceptions.
> >
> > Huh, I wonder why we complain about this unguarded catch but not about
> > the one inside uneq_allocator::allocate a few lines above...
>
> I was just wondering that ...
Maybe it only complains about the members that are instantiated?
Both functions need the same fix, I think.
More information about the Libstdc++
mailing list