https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96747
--- Comment #2 from Martin Matous <matous-dev at criptext dot com> --- Other compiler's behavior does makes more sense, but yeah, personal opinion. In case the patch ends up not being reverted the docs at https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wshadow should probably be clarified about what kind of shadowing is silently ignored.