Boost C++ Libraries: Ticket #9113: Warning in visit_each with -Wshadow https://svn.boost.org/trac10/ticket/9113 <pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/core/visit_each.hpp: In constructor ‘boost::phoenix::detail::visit_each_impl&lt;Visitor&gt;::visit_each_impl(Visitor&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/core/visit_each.hpp:25:48: warning: declaration of ‘visitor’ shadows a member of 'this' [-Wshadow] </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9113 Trac 1.4.3 Mathias Gaunard Fri, 13 Sep 2013 16:47:00 GMT <link>https://svn.boost.org/trac10/ticket/9113#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:1</guid> <description> <p> Other warnings in Phoenix of the same type: </p> <pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/operator/detail/preprocessed/mem_fun_ptr_gen_10.hpp: In constructor ‘boost::phoenix::detail::mem_fun_ptr_gen&lt;Object, MemPtr&gt;::mem_fun_ptr_gen(const Object&amp;, MemPtr)’: /home/nt2/dev/boost/trunk/boost/phoenix/operator/detail/preprocessed/mem_fun_ptr_gen_10.hpp:16:15: warning: declaration of ‘ptr’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/operator/detail/preprocessed/mem_fun_ptr_gen_10.hpp:16:15: warning: declaration of ‘obj’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/function/function.hpp: In constructor ‘boost::phoenix::function&lt;F&gt;::function(F)’: /home/nt2/dev/boost/trunk/boost/phoenix/function/function.hpp:41:11: warning: declaration of ‘f’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/do_while.hpp: In constructor ‘boost::phoenix::do_while_gen&lt;Do&gt;::do_while_gen(const Do&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/do_while.hpp:47:13: warning: declaration of ‘do_’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp: In member function ‘boost::phoenix::for_eval::result_type boost::phoenix::for_eval::operator()(const Init&amp;, const Cond&amp;, const Step&amp;, const Do&amp;, const Context&amp;) const’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:45:9: warning: declaration of ‘do_’ shadows a global declaration [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp: In constructor ‘boost::phoenix::for_gen&lt;Init, Cond, Step&gt;::for_gen(const Init&amp;, const Cond&amp;, const Step&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:60:13: warning: declaration of ‘step’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:60:13: warning: declaration of ‘cond’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:60:13: warning: declaration of ‘init’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp: In member function ‘const typename boost::phoenix::expression::for_&lt;Init, Cond, Step, Do&gt;::type boost::phoenix::for_gen&lt;Init, Cond, Step&gt;::operator[](const Do&amp;) const’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:65:9: warning: declaration of ‘do_’ shadows a global declaration [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp: In constructor ‘boost::phoenix::else_gen&lt;Cond, Then&gt;::else_gen(const Cond&amp;, const Then&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp:97:13: warning: declaration of ‘then’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp:97:13: warning: declaration of ‘cond’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp: In constructor ‘boost::phoenix::if_gen&lt;Cond&gt;::if_gen(const Cond&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp:139:13: warning: declaration of ‘cond’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/switch.hpp: In constructor ‘boost::phoenix::switch_gen&lt;Cond&gt;::switch_gen(const Cond&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/switch.hpp:241:38: warning: declaration of ‘cond’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp: In constructor ‘boost::phoenix::catch_gen&lt;TryCatch, Exception&gt;::catch_gen(const TryCatch&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp:277:46: warning: declaration of ‘try_catch’ shadows a member of 'this' [-Wshadow] /home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp: In constructor ‘boost::phoenix::catch_all_gen&lt;TryCatch&gt;::catch_all_gen(const TryCatch&amp;)’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp:304:50: warning: declaration of ‘try_catch’ shadows a member of 'this' [-Wshadow] </pre><pre class="wiki">/home/nt2/dev/boost/trunk/boost/phoenix/statement/while.hpp: In member function ‘boost::phoenix::while_eval::result_type boost::phoenix::while_eval::operator()(const Cond&amp;, const Do&amp;, const Context&amp;) const’: /home/nt2/dev/boost/trunk/boost/phoenix/statement/while.hpp:31:9: warning: declaration of ‘do_’ shadows a global declaration [-Wshadow] </pre><p> and many others... </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Thu, 23 Jan 2014 00:09:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:2</guid> <description> <p> Fixes for some of these pushed to develop branch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Wed, 05 Feb 2014 18:51:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:3</guid> <description> <p> Not quite fixed, attached is a text file with several warnings about shadowing variables in Phoenix </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Wed, 05 Feb 2014 18:51:36 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9113 https://svn.boost.org/trac10/ticket/9113 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">phoenix_shadow_warnings.txt</span> </li> </ul> Ticket John Fletcher <J.P.Fletcher@…> Wed, 05 Feb 2014 20:01:11 GMT <link>https://svn.boost.org/trac10/ticket/9113#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:4</guid> <description> <p> Thank you I will look into these. I know I did not fix them all. John </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Fri, 07 Feb 2014 12:24:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:5</guid> <description> <p> I think I have now fixed all of these. Would you check please and let me know of any remaining? Thanks John </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Fri, 07 Feb 2014 12:25:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/9113#comment:5" title="Comment 5">John Fletcher &lt;J.P.Fletcher@…&gt;</a>: </p> <blockquote class="citation"> <p> I think I have now fixed all of these. Would you check please and let me know of any remaining? Thanks John </p> </blockquote> <p> They will be on the develop branch shortly and into the next release (3.0.5). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Fri, 07 Feb 2014 14:53:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:7</guid> <description> <p> I still get warnings with latest develop, db1f0eed551cd2693144e1ccd6ffc38f7fd5bae8 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Fri, 07 Feb 2014 14:55:45 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9113 https://svn.boost.org/trac10/ticket/9113 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">shadow_warnings2.txt</span> </li> </ul> Ticket John Fletcher <J.P.Fletcher@…> Fri, 07 Feb 2014 18:24:15 GMT <link>https://svn.boost.org/trac10/ticket/9113#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:8</guid> <description> <p> I think I have fixed those, including two sets of preprocessed files. Would you check again please? They are on develop. John </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Sat, 08 Feb 2014 09:34:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:9</guid> <description> <p> Only one left: </p> <p> /home/nt2/dev/boost/boost/phoenix/bind/detail/member_function_ptr.hpp: In constructor ‘boost::phoenix::detail::member_function_ptr_impl&lt;0&gt;::impl&lt;RT, FP&gt;::impl(FP)’: /home/nt2/dev/boost/boost/phoenix/bind/detail/member_function_ptr.hpp:57:17: warning: declaration of ‘fp’ shadows a member of 'this' [-Wshadow] </p> <p> Thanks for this </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Sat, 08 Feb 2014 10:36:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:10</guid> <description> <p> This one is now fixed on develop. I have some other things on test and will probably do another release to master, hopefully to get into the next Boost release. Thank you for your help. John </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mathias Gaunard</dc:creator> <pubDate>Sat, 08 Feb 2014 10:45:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9113#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9113#comment:11</guid> <description> <p> Can't see any warnings anymore, thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Tue, 10 May 2016 15:58:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9113#comment:12 https://svn.boost.org/trac10/ticket/9113#comment:12 <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">fixed</span> </li> </ul> Ticket