[PATCH] libstdc++: Implement P1789R3: structured bindings for std::integer_sequence
Jakub Jelinek
jakub@redhat.com
Wed Apr 8 10:11:24 GMT 2026
On Wed, Apr 08, 2026 at 11:08:30AM +0100, Jonathan Wakely wrote:
> On Sun, 5 Apr 2026, 19:33 Matthias Wippich, <mfwippich@gmail.com> wrote:
>
> > >Will post an updated patch, but wouldn’t pre-CWG3135 wording also work,
> > due to lifetime extension?
> > Without the changes from cwg3135, this cannot interact well with p2686
> > constexpr structured bindings. The non-constexpr case should be fine.
> > That's very unfortunate since the intended use is with p2686 constexpr
> > bindings + p1061 pack-introducing bindings - therefore, implementing
> > p1789 without first addressing cwg3135 seems moot to me.
> >
> > As Tomasz mentioned, I already submitted a patch for this end of last
> > year but waited to see whether we fix p1789 by addressing the core
> > language defect or by changing the library specification instead.
> > Since cwg3135 is accepted now, I was going to update it as soon as
> > Jakub's patch for cwg3135 from 2 days ago is merged (so tests pass).
> >
> > Since your patch seems to be in better shape than mine, I do not mind
> > abandoning the previous patch in favor of this one. @Tomasz: Which one
> > do you want to go ahead with? Does the release target change depending
> > on which one is used or is it going to be GCC 17 either way?
> >
>
> Since this only adds some small additions to C++26 mode I think this would
> still be ok for GCC 16 if we're quick.
Note, the cwg3135 change is already in - r16-8520
Jakub
More information about the Libstdc++
mailing list