cor3ntin wrote: @philnik777 I agree strongly with @Fznamznon. If `this` is not captured there is no actual shadowing in that they do not occupy encompassing scope, and so removing one declaration would not give you access to the other variable.
> Should we still emit shadowing warning in case lambda captured this and has > an init-capture with the same name as a class field? Yes, we should probably do that. (sorry for the very delayed reply, it fell off my radar) 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