Fix std::deque move construction with non-equal allocators.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Nov 2014 22:44:07 +0000 (22:44 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 10 Nov 2014 22:44:07 +0000 (22:44 +0000)
commit2abd4ee6b507ce4ed4cc1591e616e0abb0740cfb
tree82b7ad8a37e5fb0f27c2cddc50136d114462233b
parentb12db70880b724e80346016579fd6bbddb2b1c2c
Fix std::deque move construction with non-equal allocators.

* include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
Dispatch according to whether allocators are always equal.
(_Deque_base::_M_move_impl()): Implement move-from state.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Fix
dg-error line number.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
Likewise.

From-SVN: r217322
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc
libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc