[Bug libstdc++/71964] [5/6/7 Regression] Move constructor of std::set does not move allocator

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 6 12:22:00 GMT 2016


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


More information about the Gcc-bugs mailing list