This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: FranÃois Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Nov 2014 23:51:56 +0000
- Subject: Re: [Bug libstdc++/63698] [5 Regression] std::set leaks nodes on assignment
- Authentication-results: sourceware.org; auth=none
- References: <bug-63698-19885 at http dot gcc dot gnu dot org/bugzilla/> <bug-63698-19885-9zlsuU9tfx at http dot gcc dot gnu dot org/bugzilla/> <54594DE0 dot 1010401 at gmail dot com>
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!