This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/71964] [5/6/7 Regression] Move constructor of std::set does not move allocator
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Aug 2016 12:22:22 +0000
- Subject: [Bug libstdc++/71964] [5/6/7 Regression] Move constructor of std::set does not move allocator
- Auto-submitted: auto-generated
- References: <bug-71964-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71964
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Aug 6 12:21:51 2016
New Revision: 239207
URL: https://gcc.gnu.org/viewcvs?rev=239207&root=gcc&view=rev
Log:
Move allocator in RB tree move constructors
Backport from mainline
2016-07-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/71964
* include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&)): Move allocator.
* testsuite/23_containers/set/allocator/71964.cc: New test.
Added:
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_tree.h