https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147
--- Comment #7 from Paul Smith <psmith at gnu dot org> --- I don't really think this change is related to -Wunused-private-field: at least I don't see any relationship. My personal preference would be to not even bother to create an option for this; I think that GCC should _never_ warn about this usage. I really can't fathom a reason that anyone would want to enable shadow warnings in this situation, such that creating a separate option to control it worth the effort.