Re: [Boost-bugs] [Boost C++ Libraries] #11640: scope_exit: -Wshadow warning issued

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11640: scope_exit: -Wshadow warning issued
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-24 12:57:20


#11640: scope_exit: -Wshadow warning issued
--------------------------------+------------------------
  Reporter: lukasz.czajczyk@… | Owner: lcaminiti
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: scope_exit
   Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+------------------------

Comment (by lukasz.czajczyk@…):

 The same issue happens with Boost 1.62 and Clang 4.0.

 The output from clang is simpler:


 {{{
 i.cxx:6:22: warning: declaration shadows a local variable [-Wshadow]
    BOOST_SCOPE_EXIT(&i, j)
                      ^
 i.cxx:5:8: note: previous declaration is here
    int i, j = 0;
        ^
 i.cxx:6:25: warning: declaration shadows a local variable [-Wshadow]
    BOOST_SCOPE_EXIT(&i, j)
                         ^
 i.cxx:5:11: note: previous declaration is here
    int i, j = 0;
           ^
 2 warnings generated.

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11640#comment:2>
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-03-24 13:01:48 UTC