id summary reporter owner description type status milestone component version severity resolution keywords cc 7531 [container] shadowing warnings under gcc jeffrey.hellrung Ion Gaztañaga "The following {{{ #!cpp #include int main(int argc, char* argv[]) { return 0; } }}} compiled with {{{ g++ -I/path/to/boost -Wshadow main.cpp }}} yields {{{ /path/to/boost/boost/container/vector.hpp: In member function ‘void boost::container::vector::priv_assign_aux(FwdIt, FwdIt, std::forward_iterator_tag)’: /path/to/boost/boost/container/vector.hpp:2066: warning: declaration of ‘end’ shadows a member of 'this' }}} Similar warnings appear when including flat_set and flat_map (and not sure, perhaps other containers as well). Seems most if not all such warnings are easily avoided by using a different name for the relevant local variables. This one of the warnings turned on by one of the software groups at Sandia, where warnings are treated as errors, hence this precludes the use of Boost.Container within this software. Which is very sad for me :( If you want, Ion, I can make the necessary changes in trunk tonight (U.S. time) and soon after merge to release in time to get this into 1.52.0. Also, I don't think it matters, but this is on gcc 4.1.2." Bugs closed To Be Determined container Boost 1.51.0 Problem fixed