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

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/18/21 17:48, Patrick Palka wrote: On Thu, 18 Nov 2021, Jason Merrill wrote: On 11/2/21 14:06, Patrick Palka wrote: Here when determining the type of the FIELD_DECL for the by-value capture of 'i' in the inner lambda, we incorrectly give it the type const int instead of int since the effe

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

2021-11-18 Thread Patrick Palka via Gcc-patches
On Thu, 18 Nov 2021, Jason Merrill wrote: > On 11/2/21 14:06, Patrick Palka wrote: > > Here when determining the type of the FIELD_DECL for the by-value > > capture of 'i' in the inner lambda, we incorrectly give it the > > type const int instead of int since the effective initializer is > > the p

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

2021-11-18 Thread Jason Merrill via Gcc-patches
On 11/2/21 14:06, Patrick Palka wrote: Here when determining the type of the FIELD_DECL for the by-value capture of 'i' in the inner lambda, we incorrectly give it the type const int instead of int since the effective initializer is the proxy for the outer capture, and this proxy is const qualifi

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

2021-11-02 Thread Patrick Palka via Gcc-patches
Here when determining the type of the FIELD_DECL for the by-value capture of 'i' in the inner lambda, we incorrectly give it the type const int instead of int since the effective initializer is the proxy for the outer capture, and this proxy is const qualified since the outer lambda is non-mutable.