Re: [PATCH] c++: Disallow decomposition of lambda bases [PR90321]

2024-11-21 Thread Marek Polacek
On Thu, Nov 07, 2024 at 09:48:52PM +1100, Nathaniel Shead wrote: > Bootstrapped and lightly regtested on x86_64-pc-linux-gnu (so far just > dg.exp), OK for trunk if full regtest succeeds? > > -- >8 -- > > Decomposition of lambda closure types is not allowed by > [dcl.struct.bind] p6, since member

[PATCH] c++: Disallow decomposition of lambda bases [PR90321]

2024-11-07 Thread Nathaniel Shead
Bootstrapped and lightly regtested on x86_64-pc-linux-gnu (so far just dg.exp), OK for trunk if full regtest succeeds? -- >8 -- Decomposition of lambda closure types is not allowed by [dcl.struct.bind] p6, since members of a closure have no name. r244909 made this an error, but missed the case w