Fznamznon wrote:

> It looks like Clang even has a warning for this specific case and GCC 
> considers it shadowing too: https://godbolt.org/z/Y16njoPxh, which makes me 
> think that people want this - at least as a separate flag.

I already came across `-Wshadow-uncaptured-local` flag earlier - 
https://github.com/llvm/llvm-project/issues/71976#issuecomment-1840927162 . I 
don't mind putting the warning that I'm avoiding with the current patch under 
this flag as well.

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