Boost C++ Libraries: Ticket #9371: g++ 4.7 -Wshadow warnings need attention https://svn.boost.org/trac10/ticket/9371 <p> Following are warnings from g++ 4.7 </p> <p> boost/graph/detail/adjacency_list.hpp:2608:16: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/detail/adjacency_list.hpp:2608:59: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graph_concepts.hpp:474:9: warning: declaration of 'g' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graph_concepts.hpp:501:9: warning: declaration of 'g' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:516:61: warning: declaration of 'dp' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:545:7: warning: declaration of 'dp' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:545:7: warning: declaration of 'node_id' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:585:9: warning: declaration of 'dp' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:585:9: warning: declaration of 'node_id' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/graphviz.hpp:673:5: warning: declaration of 'errmsg' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/named_graph.hpp:222:7: warning: declaration of 'extract' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/named_graph.hpp:222:7: warning: declaration of 'graph' shadows a member of 'this' [-Wshadow] </p> <p> boost/graph/named_graph.hpp:295:79: warning: declaration of 'vertex_constructor' shadows a member of 'this' [-Wshadow] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9371 Trac 1.4.3 Jeremiah Willcock Wed, 13 Nov 2013 17:36:03 GMT <link>https://svn.boost.org/trac10/ticket/9371#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9371#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86680" title="Changed some names to fix shadowing warnings; refs #9371">[86680]</a>) Changed some names to fix shadowing warnings; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9371" title="#9371: Bugs: g++ 4.7 -Wshadow warnings need attention (closed: wontfix)">#9371</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 13 Nov 2013 17:37:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9371#comment:2 https://svn.boost.org/trac10/ticket/9371#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