]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR libstdc++/59738 (r206444 caused FAIL: 23_containers/vector/52591.cc)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Mar 2014 19:23:04 +0000 (19:23 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Mar 2014 19:23:04 +0000 (19:23 +0000)
commita64ddaccf608af27809d7ddbfc1a0d9ae47beb38
tree44e7ce8da086e09642deb2e0591a1994060e0d34
parent8c7a4fa57f60e18780bd44c50e36d68f073c1cb8
backport: re PR libstdc++/59738 (r206444 caused FAIL: 23_containers/vector/52591.cc)

Backport from mainline.

2014-01-09  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/59738
* include/bits/stl_vector.h (vector<>::_M_move_assign): Restore
support for non-Movable types.

2014-01-08  François Dumont  <fdumont@gcc.gnu.org>

* include/bits/stl_vector.h (std::vector<>::_M_move_assign): Pass
*this allocator instance when building temporary vector instance
so that *this allocator does not get moved.
* testsuite/23_containers/vector/allocator/move.cc (test01): Add
check on a vector iterator.
* testsuite/23_containers/vector/allocator/move_assign.cc
(test02): Likewise.
(test03): New, test with a non-propagating allocator.

2013-11-15  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/23_containers/vector/allocator/move.cc: New

From-SVN: r208494
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector/allocator/move.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/allocator/move_assign.cc