This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment
- From: "fdumont at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Nov 2014 19:16:44 +0000
- Subject: [Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment
- Auto-submitted: auto-generated
- References: <bug-63698-4 at http dot gcc dot gnu dot org/bugzilla/>
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