[Boost-bugs] [Boost C++ Libraries] #3718: boost regex library generates shadowed variable/member warnings

Subject: [Boost-bugs] [Boost C++ Libraries] #3718: boost regex library generates shadowed variable/member warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-04 21:25:32


#3718: boost regex library generates shadowed variable/member warnings
--------------------------------------+-------------------------------------
 Reporter: nathan.brewton@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: None
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: warnings |
--------------------------------------+-------------------------------------
 Including boost/regex.h with warnings for shadowed variables and warnings
 enabled generates warnings. The output below is generated by gcc with
 -Wshadow:

 In file included from
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/regex.hpp:73,
                  from
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex.hpp:31,
                  from evaluate/LEvaluator.cpp:15:
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:
 In member function 'bool boost::re_detail::basic_regex_parser<charT,
 traits>::parse_repeat(size_t, size_t)':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:971:
 warning: declaration of 'jmp' shadows a previous local
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:956:
 warning: shadowed declaration is here
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:
 In member function 'bool boost::re_detail::basic_regex_parser<charT,
 traits>::parse_perl_extension()':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:1961:
 warning: declaration of 'v' shadows a previous local
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/basic_regex_parser.hpp:1834:
 warning: shadowed declaration is here
 In file included from
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/regex.hpp:82,
                  from
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex.hpp:31,
                  from evaluate/LEvaluator.cpp:15:
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:
 In member function 'typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::difference_type
 boost::match_results<BidiIterator, Allocator>::length(const typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::value_type*)
 const':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:108:
 warning: declaration of 'end' shadows a member of 'this'
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:
 In member function 'typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::difference_type
 boost::match_results<BidiIterator, Allocator>::length(const charT*)
 const':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:115:
 warning: declaration of 'end' shadows a member of 'this'
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:
 In member function 'typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::difference_type
 boost::match_results<BidiIterator, Allocator>::position(const typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::value_type*)
 const':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:139:
 warning: declaration of 'end' shadows a member of 'this'
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:
 In member function 'typename
 boost::re_detail::regex_iterator_traits<BidiIterator>::difference_type
 boost::match_results<BidiIterator, Allocator>::position(const charT*)
 const':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/regex/v4/match_results.hpp:146:
 warning: declaration of 'end' shadows a member of 'this'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3718>
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:02 UTC