https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71964
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Fri Jul 22 15:03:11 2016 New Revision: 238647 URL: https://gcc.gnu.org/viewcvs?rev=238647&root=gcc&view=rev Log: Move allocator in std::string and RB tree move constructors PR libstdc++/71964 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string::_Alloc_hider(pointer, _Alloc&&)): Add constructor. * include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&)): Move allocator. * testsuite/21_strings/basic_string/allocator/71964.cc: New test. * testsuite/23_containers/set/allocator/71964.cc: New test. Added: trunk/libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc trunk/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/basic_string.h trunk/libstdc++-v3/include/bits/stl_tree.h