]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
Fix assertions for move assignment of trivial types
authorJonathan Wakely <jwakely@redhat.com>
Tue, 26 Jan 2016 19:38:20 +0000 (19:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 26 Jan 2016 19:38:20 +0000 (19:38 +0000)
commitf1d591e8a6b82935ec9767b3da52daa89d22f7a1
tree377bdc5779146d2b593d7ebd63754ceb1700f7b7
parent2a4dfe66dac91a0f60c5864996df61e2a5ad625b
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.

From-SVN: r232842
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]