re PR libstdc++/52591 ([C++0x] [4.7 Regression] moving std::vector relies on movable...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 1 Apr 2012 22:04:54 +0000 (22:04 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 1 Apr 2012 22:04:54 +0000 (23:04 +0100)
commitea2c1a6d673c443effb1adbc652143c2b3934a5d
tree9c3ee73c94a8d2af8568e44388d7d72df4b572dd
parent181c9de2a6d42430f66fe1374d84208703bd0ac3
re PR libstdc++/52591 ([C++0x] [4.7 Regression] moving std::vector relies on movable elements)

PR libstdc++/52591
* include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
to _M_move_assign depending on whether allocator is moved.
(vector::_M_move_assign): Add overloaded functions.
* testsuite/23_containers/vector/52591.cc: New.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.

From-SVN: r186057
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/vector/52591.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc