Re: [Boost-bugs] [Boost C++ Libraries] #9113: Warning in visit_each with -Wshadow

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9113: Warning in visit_each with -Wshadow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-13 16:47:00


#9113: Warning in visit_each with -Wshadow
--------------------------------------+---------------------
  Reporter: mgaunard | Owner: theller
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: phoenix
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+---------------------

Comment (by mgaunard):

 Other warnings in Phoenix of the same type:

 {{{
 /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<Object,
 MemPtr>::mem_fun_ptr_gen(const Object&, 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]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/function/function.hpp: In
 constructor ‘boost::phoenix::function<F>::function(F)’:
 /home/nt2/dev/boost/trunk/boost/phoenix/function/function.hpp:41:11:
 warning: declaration of ‘f’ shadows a member of 'this' [-Wshadow]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/do_while.hpp: In
 constructor ‘boost::phoenix::do_while_gen<Do>::do_while_gen(const Do&)’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/do_while.hpp:47:13:
 warning: declaration of ‘do_’ shadows a member of 'this' [-Wshadow]
 }}}

 {{{
 /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&, const Cond&, const
 Step&, const Do&, const Context&) const’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:45:9: warning:
 declaration of ‘do_’ shadows a global declaration [-Wshadow]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp: In constructor
 â€˜boost::phoenix::for_gen<Init, Cond, Step>::for_gen(const Init&, const
 Cond&, const Step&)’:
 /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_<Init, Cond,
 Step, Do>::type boost::phoenix::for_gen<Init, Cond,
 Step>::operator[](const Do&) const’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/for.hpp:65:9: warning:
 declaration of ‘do_’ shadows a global declaration [-Wshadow]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp: In constructor
 â€˜boost::phoenix::else_gen<Cond, Then>::else_gen(const Cond&, const
 Then&)’:
 /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<Cond>::if_gen(const Cond&)’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/if.hpp:139:13: warning:
 declaration of ‘cond’ shadows a member of 'this' [-Wshadow]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/switch.hpp: In
 constructor ‘boost::phoenix::switch_gen<Cond>::switch_gen(const Cond&)’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/switch.hpp:241:38:
 warning: declaration of ‘cond’ shadows a member of 'this' [-Wshadow]
 }}}

 {{{
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp: In
 constructor ‘boost::phoenix::catch_gen<TryCatch,
 Exception>::catch_gen(const TryCatch&)’:
 /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<TryCatch>::catch_all_gen(const
 TryCatch&)’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/try_catch.hpp:304:50:
 warning: declaration of ‘try_catch’ shadows a member of 'this' [-Wshadow]
 }}}

 {{{
 /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&, const Do&, const
 Context&) const’:
 /home/nt2/dev/boost/trunk/boost/phoenix/statement/while.hpp:31:9: warning:
 declaration of ‘do_’ shadows a global declaration [-Wshadow]
 }}}

 and many others...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9113#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC