id summary reporter owner description type status milestone component version severity resolution keywords cc 5439 warning on dynamic bitset lieven.de.cock@… jsiek "When code is being compiled with the gcc compiler option ""-Wshadow"" [warn whenever a local variable shadows another local variable, parameter or global variable or whenever a build-in function is shadowed ...] we get a warning. dynamic_bitset.hpp in the method : template unsigned long dynamic_bitset:: to_ulong() const at the line (1111) : {{{ const size_type max_size = (std::min)(m_num_bits, static_cast(ulong_width)); const size_type last_block = block_index( max_size - 1 ); }}} The max_size local variable shadows the max_size method. Solution is trivial , rename the local variable : max_size -> maximum_size {{{ const size_type maximum_size = (std::min)(m_num_bits, static_cast(ulong_width)); const size_type last_block = block_index( maximum_size - 1 ); }}} kind regards, Lieven " Bugs closed To Be Determined dynamic_bitset Boost 1.47.0 Cosmetic fixed