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