[PATCH] libstdc++: Fix -fno-exceptions support in testsuite_allocator.h
Patrick Palka
ppalka@redhat.com
Thu May 28 14:09:10 GMT 2026
On Thu, 28 May 2026, Jonathan Wakely wrote:
> 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.
Yeah, I think you're right. I'm surprised we haven't run into this for
for ::allocate which was added in 2006.
More information about the Libstdc++
mailing list