[Boost-bugs] [Boost C++ Libraries] #9378: g++ 4.7 -Wshadow warnings need attention

Subject: [Boost-bugs] [Boost C++ Libraries] #9378: g++ 4.7 -Wshadow warnings need attention
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-12 23:39:54


#9378: g++ 4.7 -Wshadow warnings need attention
-----------------------------------------+--------------------------
 Reporter: Tom Browder <tom.browder@…> | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: xpressive
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-----------------------------------------+--------------------------
 Following are warnings from g++ 4.7

 boost/xpressive/detail/core/matcher/assert_word_matcher.hpp:94:11:
 warning: declaration of 'word' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/core/sub_match_vector.hpp:151:10: warning:
 declaration of 'size' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/core/sub_match_vector.hpp:152:5: warning:
 declaration of 'size' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/core/sub_match_vector.hpp:158:5: warning:
 declaration of 'size' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/dynamic/sequence.hpp:42:7: warning: declaration of
 'xpr' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/dynamic/sequence.hpp:54:7: warning: declaration of
 'xpr' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/static/transforms/as_set.hpp:161:9: warning:
 declaration of 'set_' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/static/visitor.hpp:111:18: warning: declaration of
 'self' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/static/visitor.hpp:30:18: warning: declaration of
 'self' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/static/visitor.hpp:31:11: warning: declaration of
 'self' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/chset/range_run.ipp:107:20: warning:
 declaration of 'begin' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/chset/range_run.ipp:108:20: warning:
 declaration of 'end' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:53:10: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:54:5: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:64:5: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:114:5: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:150:10: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:151:5: warning:
 declaration of 'icase' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:152:21: warning:
 declaration of 'count' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/hash_peek_bitset.hpp:152:47: warning:
 declaration of 'count' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/sequence_stack.hpp:68:9: warning:
 declaration of 'size' shadows a member of 'this' [-Wshadow]

 boost/xpressive/detail/utility/sequence_stack.hpp:69:11: warning:
 declaration of 'size' shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:416:25: warning: declaration of 'size'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:689:5: warning: declaration of
 'regex_id' shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:695:13: warning: declaration of 'begin'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:696:13: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:716:10: warning: declaration of
 'regex_id' shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:716:10: warning: declaration of 'size'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:724:5: warning: declaration of
 'regex_id' shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:724:5: warning: declaration of 'size'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:745:10: warning: declaration of 'begin'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:745:10: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:746:5: warning: declaration of 'begin'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:746:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:852:5: warning: declaration of 'format'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:854:46: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:886:5: warning: declaration of 'format'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:904:5: warning: declaration of 'format'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:922:5: warning: declaration of 'format'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:940:5: warning: declaration of 'format'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:951:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:973:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1000:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1035:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1047:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1124:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1174:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1315:5: warning: declaration of 'end'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/match_results.hpp:1319:25: warning: declaration of 'begin'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/regex_error.hpp:57:7: warning: declaration of 'code'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/sub_match.hpp:82:5: warning: declaration of 'first'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/sub_match.hpp:82:5: warning: declaration of 'second'
 shadows a member of 'this' [-Wshadow]

 boost/xpressive/sub_match.hpp:117:5: warning: declaration of 'str' shadows
 a member of 'this' [-Wshadow]

 boost/xpressive/traits/cpp_regex_traits.hpp:520:25: warning: declaration
 of 'char_class' shadows a member of 'this' [-Wshadow]

 boost/xpressive/traits/cpp_regex_traits.hpp:520:77: warning: declaration
 of 'char_class' shadows a member of 'this' [-Wshadow]

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