https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2017-03-17 00:00:00 |2018-11-14 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Trunk now emits the warning three times! s.cc: In constructor 'Foo::Foo(int)': s.cc:5:20: warning: declaration of 'foo' shadows a member of 'Foo' [-Wshadow] 5 | Foo(int foo) : foo(foo) {} | ^ s.cc:3:11: note: shadowed declaration is here 3 | int foo; | ^~~ s.cc: In constructor 'Foo::Foo(int)': s.cc:5:32: warning: declaration of 'foo' shadows a member of 'Foo' [-Wshadow] 5 | Foo(int foo) : foo(foo) {} | ^ s.cc:3:11: note: shadowed declaration is here 3 | int foo; | ^~~ s.cc: In constructor 'Foo::Foo(int)': s.cc:5:32: warning: declaration of 'foo' shadows a member of 'Foo' [-Wshadow] 5 | Foo(int foo) : foo(foo) {} | ^ s.cc:3:11: note: shadowed declaration is here 3 | int foo; | ^~~ Was the patch ever posted to gcc-patches?