[Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment
fdumont at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 5 19:16:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63698
--- Comment #8 from François Dumont <fdumont at gcc dot gnu.org> ---
Author: fdumont
Date: Wed Nov 5 19:16:13 2014
New Revision: 217154
URL: https://gcc.gnu.org/viewcvs?rev=217154&root=gcc&view=rev
Log:
2014-11-04 François Dumont <fdumont@gcc.gnu.org>
Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/63698
* include/bits/stl_tree.h (_Reuse_or_alloc_node): Simplify constructor.
Always move to the left node if there is one.
* testsuite/23_containers/set/allocator/move_assign.cc (test04): New.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_tree.h
trunk/libstdc++-v3/testsuite/23_containers/set/allocator/move_assign.cc
More information about the Gcc-bugs
mailing list