Boost C++ Libraries: Ticket #9376: g++ 4.7 -Wshadow warnings need attention https://svn.boost.org/trac10/ticket/9376 <p> Following are warnings from g++ 4.7 </p> <p> boost/property_map/property_map.hpp:634:54: warning: declaration of 'pm' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/vector_property_map.hpp:33:9: warning: declaration of 'index' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/vector_property_map.hpp:38:9: warning: declaration of 'index' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:80:51: warning: declaration of 'property' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:95:52: warning: declaration of 'property' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:149:14: warning: declaration of 'key' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:170:5: warning: declaration of 'property_map_' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:173:3: warning: declaration of 'key' shadows a member of 'this' [-Wshadow] </p> <p> boost/property_map/dynamic_property_map.hpp:178:3: warning: declaration of 'key' shadows a member of 'this' [-Wshadow] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9376 Trac 1.4.3 Jeremiah Willcock Wed, 13 Nov 2013 17:36:16 GMT <link>https://svn.boost.org/trac10/ticket/9376#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9376#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86681" title="Changed some names to fix shadowing warnings; refs #9376">[86681]</a>) Changed some names to fix shadowing warnings; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9376" title="#9376: Bugs: g++ 4.7 -Wshadow warnings need attention (closed: wontfix)">#9376</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 13 Nov 2013 17:37:37 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9376#comment:2 https://svn.boost.org/trac10/ticket/9376#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> I fixed the ones that were about local variables; using constructor parameters with the same names as the members they initialize is a standard idiom in C++ so I won't change those. </p> Ticket