Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2025-01-21 Thread Jason Merrill
On 1/16/25 5:42 PM, Marek Polacek wrote: On Wed, Jan 15, 2025 at 04:18:36PM -0500, Jason Merrill wrote: On 1/15/25 12:55 PM, Marek Polacek wrote: On Wed, Jan 15, 2025 at 09:39:41AM -0500, Jason Merrill wrote: On 11/15/24 9:08 AM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-

Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2025-01-16 Thread Marek Polacek
On Wed, Jan 15, 2025 at 04:18:36PM -0500, Jason Merrill wrote: > On 1/15/25 12:55 PM, Marek Polacek wrote: > > On Wed, Jan 15, 2025 at 09:39:41AM -0500, Jason Merrill wrote: > > > On 11/15/24 9:08 AM, Marek Polacek wrote: > > > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > > >

Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2025-01-15 Thread Jason Merrill
On 1/15/25 12:55 PM, Marek Polacek wrote: On Wed, Jan 15, 2025 at 09:39:41AM -0500, Jason Merrill wrote: On 11/15/24 9:08 AM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- The error here should also check that we aren't nested in another lambda; in

Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2025-01-15 Thread Marek Polacek
On Wed, Jan 15, 2025 at 09:39:41AM -0500, Jason Merrill wrote: > On 11/15/24 9:08 AM, Marek Polacek wrote: > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > > > -- >8 -- > > The error here should also check that we aren't nested in another > > lambda; in it, at_function_scope_p(

Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2025-01-15 Thread Jason Merrill
On 11/15/24 9:08 AM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- The error here should also check that we aren't nested in another lambda; in it, at_function_scope_p() will be false. PR c++/117602 gcc/cp/ChangeLog: * parser.cc (cp

Re: [PATCH] c++: bogus error with nested lambdas [PR117602]

2024-12-20 Thread Marek Polacek
Ping. On Fri, Nov 15, 2024 at 09:08:18AM -0500, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > -- >8 -- > The error here should also check that we aren't nested in another > lambda; in it, at_function_scope_p() will be false. > > PR c++/117602 > >

[PATCH] c++: bogus error with nested lambdas [PR117602]

2024-11-15 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- The error here should also check that we aren't nested in another lambda; in it, at_function_scope_p() will be false. PR c++/117602 gcc/cp/ChangeLog: * parser.cc (cp_parser_lambda_introducer): Check if we're i