Fix assertions for move assignment of trivial types
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 2016 19:38:20 +0000 (19:38 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jan 2016 19:38:20 +0000 (19:38 +0000)
commitb5a12ddb4aed41ad691503d6984ce411ed445d54
tree377bdc5779146d2b593d7ebd63754ceb1700f7b7
parente1788bf00d37a76b0d3f32df60c702649b97c9ac
Fix assertions for move assignment of trivial types

PR libstdc++/69478
* include/bits/stl_algobase.h (__copy_move<_IsMove, true,
random_access_iterator_tag>): Check is_move_assignable when moving.
(__copy_move_backwards<_IsMove, true, random_access_iterator_tag>):
Likewise.
* testsuite/25_algorithms/copy/move_iterators/69478.cc: New.
* testsuite/25_algorithms/copy_backward/move_iterators/69478.cc: New.
* testsuite/25_algorithms/move/69478.cc: New.
* testsuite/25_algorithms/move_backward/69478.cc: new.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232842 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/testsuite/25_algorithms/copy/move_iterators/69478.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/copy_backward/move_iterators/69478.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/move/69478.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/move_backward/69478.cc [new file with mode: 0644]