Re: [PATCH] c++: nested lambda capturing a capture proxy, part 2 [PR94376]

2021-12-16 Thread Jason Merrill via Gcc-patches
On 12/16/21 11:28, Patrick Palka wrote: On Wed, 15 Dec 2021, Jason Merrill wrote: On 12/15/21 15:36, Patrick Palka wrote: The r12-5403 fix apparently doesn't handle the case where the inner lambda explicitly rather implicitly captures the capture proxy from the outer lambda, and so we still re

Re: [PATCH] c++: nested lambda capturing a capture proxy, part 2 [PR94376]

2021-12-16 Thread Patrick Palka via Gcc-patches
On Wed, 15 Dec 2021, Jason Merrill wrote: > On 12/15/21 15:36, Patrick Palka wrote: > > The r12-5403 fix apparently doesn't handle the case where the inner > > lambda explicitly rather implicitly captures the capture proxy from > > the outer lambda, and so we still reject the first example in the

Re: [PATCH] c++: nested lambda capturing a capture proxy, part 2 [PR94376]

2021-12-15 Thread Jason Merrill via Gcc-patches
On 12/15/21 15:36, Patrick Palka wrote: The r12-5403 fix apparently doesn't handle the case where the inner lambda explicitly rather implicitly captures the capture proxy from the outer lambda, and so we still reject the first example in the testcase below. The reason is that compared to an impl

[PATCH] c++: nested lambda capturing a capture proxy, part 2 [PR94376]

2021-12-15 Thread Patrick Palka via Gcc-patches
The r12-5403 fix apparently doesn't handle the case where the inner lambda explicitly rather implicitly captures the capture proxy from the outer lambda, and so we still reject the first example in the testcase below. The reason is that compared to an implicit capture, the effective initializer fo