This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

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


On 4 November 2014 22:06, FranÃois Dumont <frs.dumont@gmail.com> wrote:
> Hi
>
>     Here is more or less the patch proposed on the ticket with the test case
> also provided in the ticket.
>
> 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.
>
> Tested under Linux x86_64, ok to commit ?

OK, thanks!


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