re PR libstdc++/63698 (std::set leaks nodes on assignment)
authorFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 5 Nov 2014 19:16:13 +0000 (19:16 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 5 Nov 2014 19:16:13 +0000 (19:16 +0000)
commit6c52b7dfc45578bd8470a3b6297ef3b04fd35926
tree0ef3321c8827e2e4e0539c8407d4e04776903665
parente028b0bbca86c369c145a410cf06a65d729c91d6
re PR libstdc++/63698 (std::set leaks nodes on assignment)

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.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r217154
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/testsuite/23_containers/set/allocator/move_assign.cc