id summary reporter owner description type status milestone component version severity resolution keywords cc 3718 boost regex library generates shadowed variable/member warnings nathan.brewton@… John Maddock "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::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::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::difference_type boost::match_results::length(const typename boost::re_detail::regex_iterator_traits::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::difference_type boost::match_results::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::difference_type boost::match_results::position(const typename boost::re_detail::regex_iterator_traits::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::difference_type boost::match_results::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' " Bugs closed Boost 1.42.0 regex Boost 1.40.0 Problem fixed warnings