This is very similar to Bug 39526 except that the test-case there now (Fedora rawhide: gcc-4.4.0-0.32.x86_64) passes, while this similar one reports...
g++ -c -Wshadow demo.cxx demo.cxx: In function int foo(): demo.cxx:11: warning: declaration of infoo shadows a previous local demo.cxx:10: warning: shadowed declaration is here -- Summary: -Wshadow reports shadowed declarations for parameters of unnamed temp objects Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: caolanm at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39763