Re: [PATCH] c++: outer 'this' leaking into local class [PR106969]

2023-03-24 Thread Jason Merrill via Gcc-patches
On 3/23/23 11:00, Patrick Palka wrote: Here when resolving the implicit object for '' within the local class Foo, we expect to obtain a dummy object of type Foo& since there's no 'this' available in this context. And yet at this point current_class_ref still corresponds to the outer class

[PATCH] c++: outer 'this' leaking into local class [PR106969]

2023-03-23 Thread Patrick Palka via Gcc-patches
Here when resolving the implicit object for '' within the local class Foo, we expect to obtain a dummy object of type Foo& since there's no 'this' available in this context. And yet at this point current_class_ref still corresponds to the outer class Context (and is const), which confuses