id summary reporter owner description type status milestone component version severity resolution keywords cc 11412 reserve() : null pointer passed to memmove Alexandre Hamez Ion Gaztañaga "The following error is reported {{{ boost/container/detail/copy_move_algo.hpp:199:4: runtime error: null pointer passed as argument 2, which is declared to never be null }}} when compiling the following example with GCC 5 with the {{{-fsanitize=undefined}}} option {{{ #include int main () { boost::container::flat_set fs; fs.reserve(10); return 0; } }}} Indeed, when putting a breakpoint at the reported line, the {{{f}}} argument is null. {{{ std::memmove((iterator_to_raw_pointer)(r), (iterator_to_raw_pointer)(f), sizeof(value_type)*n); }}} However, valgrind does not report anything and calling {{{capacity()}}} reports the correct size." Bugs closed To Be Determined container Boost 1.58.0 Problem fixed