[Bug libstdc++/56613] [4.8 Regression] map::operator[](key_type&&) fails with custom allocator

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 14 23:28:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56613

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-03-14 23:28:18 UTC ---
Author: redi
Date: Thu Mar 14 23:28:11 2013
New Revision: 196666

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196666
Log:
    PR libstdc++/56613
    * include/bits/stl_tree.h (_Rb_tree::_M_create_node): Use
    allocator_traits instead of calling construct directly.
    * testsuite/23_containers/map/56613.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/map/56613.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_tree.h



More information about the Gcc-bugs mailing list