Fznamznon wrote:

> The whole point of the shadowing warning is to avoid confusion about which 
> variable is actually used, which IMO could very well be the case here. 

In the case that is being fixed, a field is not available in lambda's body 
without capturing this, so there is no such confusion and no shadowing, I 
think. 
I have a concern, that probably in case when `this` is actually captured, with 
current implementation there will be no warning as well. Should it be? gcc 
doesn't give a warning in both cases.

https://github.com/llvm/llvm-project/pull/74512
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to