Re: [PATCH] c++: Fix up mangling of static lambdas [PR108525]

2023-01-25 Thread Jason Merrill via Gcc-patches
On 1/24/23 18:19, Jakub Jelinek wrote: Hi! Before the P1169R4 changes, operator () of a lambda was always a method, so it was fine to pass method_p = 1 unconditionally, but it isn't always the case, so this patch adds a check for whether it is a method or nor. Bootstrapped/regtested on x86_64-l

[PATCH] c++: Fix up mangling of static lambdas [PR108525]

2023-01-24 Thread Jakub Jelinek via Gcc-patches
Hi! Before the P1169R4 changes, operator () of a lambda was always a method, so it was fine to pass method_p = 1 unconditionally, but it isn't always the case, so this patch adds a check for whether it is a method or nor. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2023-