This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]