gcc/libstdc++-v3/include/bits
Jonathan Wakely dcb0d1a1a2 Fix assertions for move assignment of trivial types
Backport from mainline
2016-01-26  Jonathan Wakely  <jwakely@redhat.com>

	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: r235278
2016-04-20 14:00:43 +01:00
..
algorithmfwd.h re PR libstdc++/58357 (In C++11 std::rotate(first, middle, last) now should return a forward iterator to first + (last - middle).) 2015-02-19 20:57:40 +00:00
alloc_traits.h allocator_traits<allocator<T>> partial specialization 2016-02-11 13:30:27 +00:00
allocated_ptr.h Update copyright years. 2015-01-05 13:33:28 +01:00
allocator.h Backport shrink_to_fit() fix for -fno-exceptions 2015-11-25 16:11:33 +00:00
atomic_base.h Backport PR libstdc++/65913 fix from mainline. 2015-10-08 17:54:23 +01:00
atomic_futex.h Backport atomic_futex.h warning fix from mainline 2015-09-03 16:10:37 +01:00
basic_ios.h Update copyright years. 2015-01-05 13:33:28 +01:00
basic_ios.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
basic_string.h Remove noexcept from function template that can throw 2016-01-12 17:02:15 +00:00
basic_string.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
boost_concept_check.h Update copyright years. 2015-01-05 13:33:28 +01:00
c++0x_warning.h 2015-12-27 Edward Smith-Rowland <3dw4rd@verizon.net> 2015-12-28 00:09:16 +00:00
c++14_warning.h Update copyright years. 2015-01-05 13:33:28 +01:00
c++config * include/bits/c++config: Fix abi_tag in special modes. 2015-12-04 12:07:57 -05:00
char_traits.h Backport PR libstdc++/65049 fix from mainline 2015-10-02 21:08:17 +01:00
codecvt.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
concept_check.h Update copyright years. 2015-01-05 13:33:28 +01:00
cpp_type_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
deque.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
enable_special_members.h Update copyright years. 2015-01-05 13:33:28 +01:00
forward_list.h Improve generated libstdc++ API docs 2015-12-11 12:46:50 +00:00
forward_list.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
fstream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
functexcept.h Update copyright years. 2015-01-05 13:33:28 +01:00
functional_hash.h Update copyright years. 2015-01-05 13:33:28 +01:00
gslice.h Update copyright years. 2015-01-05 13:33:28 +01:00
gslice_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
hashtable.h Update copyright years. 2015-01-05 13:33:28 +01:00
hashtable_policy.h * include/bits/hashtable_policy.h: Use __bool_constant. 2015-01-08 13:27:30 +00:00
indirect_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
ios_base.h Extend valid values of iostream bitmask types 2015-11-25 16:11:40 +00:00
istream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
list.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
locale_classes.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
locale_classes.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
locale_conv.h Backport Filesystem TS fixes from mainline. 2015-10-07 22:00:50 +01:00
locale_facets.h Add C++11 std::string constructors for locales and facets. 2015-01-20 11:50:51 +00:00
locale_facets.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
locale_facets_nonio.h Improve generated libstdc++ API docs 2015-12-11 12:46:50 +00:00
locale_facets_nonio.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
localefwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
mask_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
memoryfwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
move.h Update copyright years. 2015-01-05 13:33:28 +01:00
ostream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
ostream_insert.h Update copyright years. 2015-01-05 13:33:28 +01:00
parse_numbers.h Update copyright years. 2015-01-05 13:33:28 +01:00
postypes.h Update copyright years. 2015-01-05 13:33:28 +01:00
predefined_ops.h Update copyright years. 2015-01-05 13:33:28 +01:00
ptr_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
quoted_string.h backport: acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS, [...]): Define. 2015-08-18 18:58:22 +01:00
random.h Avoid including all of <random> in <algorithm> 2016-04-20 14:00:24 +01:00
random.tcc Avoid including all of <random> in <algorithm> 2016-04-20 14:00:24 +01:00
range_access.h Backport libstdc++/67374 fix from mainline 2015-09-03 16:10:42 +01:00
regex.h re PR libstdc++/64441 (A match_results returns an incorrect sub_match if the sub_match::matched is false) 2015-03-10 18:41:46 +00:00
regex.tcc re PR libstdc++/64441 (A match_results returns an incorrect sub_match if the sub_match::matched is false) 2015-03-10 18:41:46 +00:00
regex_automaton.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_automaton.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
regex_compiler.h backport: re PR libstdc++/67015 ("^[a-z0-9][a-z0-9-]*$", std::regex::extended is miscompiled) 2015-07-29 04:30:25 +00:00
regex_compiler.tcc backport: re PR libstdc++/67015 ("^[a-z0-9][a-z0-9-]*$", std::regex::extended is miscompiled) 2015-07-29 04:30:25 +00:00
regex_constants.h re PR libstdc++/65420 (Enumerators in std::regex_constants should be constexpr variables instead) 2015-03-28 04:17:12 +00:00
regex_error.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_executor.h Update copyright years. 2015-01-05 13:33:28 +01:00
regex_executor.tcc backport: re PR libstdc++/68863 (Regular expressions: Backreferences don't work in negative lookahead) 2015-12-15 05:19:20 +00:00
regex_scanner.h backport: re PR libstdc++/69794 (std::regex_search match failure with regex object with flags grep|icase) 2016-02-17 04:38:15 +00:00
regex_scanner.tcc backport: re PR libstdc++/69794 (std::regex_search match failure with regex object with flags grep|icase) 2016-02-17 04:38:15 +00:00
shared_ptr.h Fix ambiguity with multiple enable_shared_from_this bases 2015-12-04 20:44:22 +00:00
shared_ptr_atomic.h Update copyright years. 2015-01-05 13:33:28 +01:00
shared_ptr_base.h Fix ambiguity with multiple enable_shared_from_this bases 2015-12-04 20:44:22 +00:00
slice_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
sstream.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
stl_algo.h Avoid including all of <random> in <algorithm> 2016-04-20 14:00:24 +01:00
stl_algobase.h Fix assertions for move assignment of trivial types 2016-04-20 14:00:43 +01:00
stl_bvector.h stl_bvector.h (vector<bool>::vector()): Add noexcept. 2015-06-26 18:36:54 +01:00
stl_construct.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_deque.h Backport PR libstdc++/67707 fix from mainline 2015-10-02 21:08:11 +01:00
stl_function.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_heap.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_iterator.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_iterator_base_funcs.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_iterator_base_types.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_list.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_map.h stl_bvector.h (vector<bool>::vector()): Add noexcept. 2015-06-26 18:36:54 +01:00
stl_multimap.h stl_bvector.h (vector<bool>::vector()): Add noexcept. 2015-06-26 18:36:54 +01:00
stl_multiset.h Fix return type of heterogeneous find for sets 2015-11-10 18:08:50 +00:00
stl_numeric.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_pair.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_queue.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_raw_storage_iter.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_relops.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_set.h Fix return type of heterogeneous find for sets 2015-11-10 18:08:50 +00:00
stl_stack.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_tempbuf.h Update copyright years. 2015-01-05 13:33:28 +01:00
stl_tree.h re PR libstdc++/66017 (Undefined behaviour in std::set<long long>) 2015-05-28 13:33:36 +01:00
stl_uninitialized.h re PR libstdc++/64476 (std::uninitialized_copy tests assignability the wrong way, resulting in performance pessimization) 2015-01-09 18:02:47 +00:00
stl_vector.h Update copyright years. 2015-01-05 13:33:28 +01:00
stream_iterator.h Update copyright years. 2015-01-05 13:33:28 +01:00
streambuf.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
streambuf_iterator.h Update copyright years. 2015-01-05 13:33:28 +01:00
stringfwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
uniform_int_dist.h Avoid including all of <random> in <algorithm> 2016-04-20 14:00:24 +01:00
unique_ptr.h Update copyright years. 2015-01-05 13:33:28 +01:00
unordered_map.h backport: unordered_map.h (unordered_map, [...]): Add missing constructors. 2015-06-22 16:53:23 +01:00
unordered_set.h backport: unordered_map.h (unordered_map, [...]): Add missing constructors. 2015-06-22 16:53:23 +01:00
uses_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_after.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_array.h Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_array.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
valarray_before.h Constrain std::valarray functions and operators 2016-02-10 11:10:58 +00:00
vector.tcc Update copyright years. 2015-01-05 13:33:28 +01:00