gcc/libstdc++-v3/include/bits
Paolo Carlini 6b592ab357 set.h: Protect move assignment operator vs self assignment.
2010-01-08  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/debug/set.h: Protect move assignment operator vs self
	assignment.
	* include/debug/unordered_map: Likewise.
 	* include/debug/multiset.h: Likewise.
 	* include/debug/vector: Likewise.
	* include/debug/unordered_set: Likewise.
	* include/debug/deque: Likewise.
	* include/debug/map.h: Likewise.
	* include/debug/list: Likewise.
	* include/debug/multimap.h: Likewise.
	* include/tr1_impl/unordered_map: Likewise.
	* include/tr1_impl/unordered_set: Likewise.
	* include/profile/set.h: Likewise.
	* include/profile/unordered_map: Likewise.
	* include/profile/multiset.h: Likewise.
	* include/profile/unordered_set: Likewise.
	* include/profile/vector: Likewise.
	* include/profile/deque: Likewise.
	* include/profile/map.h: Likewise.
	* include/profile/list: Likewise.
	* include/profile/multimap.h: Likewise.
	* include/ext/vstring.h: Likewise.
	* include/bits/stl_list.h: Likewise.
	* include/bits/stl_map.h: Likewise.
	* include/bits/stl_set.h: Likewise.
	* include/bits/stl_multimap.h: Likewise.
	* include/bits/stl_vector.h: Likewise.
	* include/bits/stl_deque.h: Likewise.
	* include/bits/stl_multiset.h: Likewise.
	* include/ext/vstring.h: Use clear(). 
	* testsuite/ext/vstring/cons/self_move_assign.cc: New.
	* testsuite/23_containers/unordered_map/cons/self_move_assign.cc:
	Likewise.
	* testsuite/23_containers/multimap/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/set/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/cons/
	self_move_assign.cc: Likewise.
	* testsuite/23_containers/forward_list/cons/self_move_assign.cc:
	Likewise.
	* testsuite/23_containers/unordered_set/cons/self_move_assign.cc:
	Likewise.
 	* testsuite/23_containers/vector/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/deque/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/multiset/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/list/cons/self_move_assign.cc: Likewise.
	* testsuite/23_containers/unordered_multiset/cons/
	self_move_assign.cc: Likewise.
	* testsuite/23_containers/map/cons/self_move_assign.cc: Likewise.

	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
	Adjust dg-error line numbers.
 	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
	Likewise.
 	* 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/deque/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
	Likewise.
	* 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/list/requirements/dr438/assign_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_2_neg.cc: Likewise.

	* testsuite/ext/vstring/moveable.cc: Move to...
	* testsuite/ext/vstring/cons/moveable.cc: ... here.
	* testsuite/23_containers/unordered_map/moveable.cc: Move to...
	* testsuite/23_containers/unordered_map/cons/moveable.cc ... here.
	* testsuite/23_containers/multimap/moveable.cc: Move to...
	* testsuite/23_containers/multimap/cons/moveable.cc: ... here.
	* testsuite/23_containers/set/moveable.cc: Move to...
	* testsuite/23_containers/set/cons/moveable.cc: ... here.
	* testsuite/23_containers/unordered_multimap/moveable.cc: Move to...
	* testsuite/23_containers/unordered_multimap/cons/moveable.cc:
	... here.
	* testsuite/23_containers/forward_list/moveable.cc: Move to...
	* testsuite/23_containers/forward_list/cons/moveable.cc: ... here.
	* testsuite/23_containers/unordered_set/moveable.cc Move to...
	* testsuite/23_containers/unordered_set/moveable.cc: ... here.
	* testsuite/23_containers/vector/cons/moveable.cc Move to...
	* testsuite/23_containers/vector/cons/moveable2.cc: ... this.
	* testsuite/23_containers/deque/cons/moveable.cc Move to...
	* testsuite/23_containers/deque/cons/moveable2.cc: ... this.
	* testsuite/23_containers/multiset/moveable.cc Move to...
	* testsuite/23_containers/multiset/cons/moveable.cc: ... here.
	* testsuite/23_containers/list/moveable.h Move to...
	* testsuite/23_containers/list/cons/moveable.h: ... here.
	* testsuite/23_containers/list/moveable.cc Move to...
	* testsuite/23_containers/list/cons/moveable.cc: ... here.
	* testsuite/23_containers/unordered_multiset/moveable.cc Move to...
	* testsuite/23_containers/unordered_multiset/cons/moveable.cc:
	... here.
	* testsuite/23_containers/map/moveable.cc Move to...
	* testsuite/23_containers/map/cons/moveable.cc: ... here.
	* testsuite/23_containers/vector/moveable.cc: Move to...
	* testsuite/23_containers/vector/cons/moveable.cc: ... here.
	* testsuite/23_containers/deque/moveable.cc: Move to...
	* testsuite/23_containers/deque/cons/moveable.cc: ... here.

From-SVN: r155754
2010-01-09 02:49:53 +00:00
..
algorithmfwd.h PR libstdc++/25304, DR 865 [Ready] 2009-12-15 00:07:52 +00:00
allocator.h re PR libstdc++/42573 ([C++0x] shrink_to_fit() missing) 2010-01-08 13:01:24 +00:00
atomic_0.h atomic: Update to N3000. 2009-12-21 19:00:34 +00:00
atomic_2.h atomic: Update to N3000. 2009-12-21 19:00:34 +00:00
atomic_base.h atomic: Update to N3000. 2009-12-21 19:00:34 +00:00
atomicfwd_c.h
atomicfwd_cxx.h
basic_ios.h
basic_ios.tcc
basic_string.h re PR libstdc++/42573 ([C++0x] shrink_to_fit() missing) 2010-01-08 13:01:24 +00:00
basic_string.tcc re PR libstdc++/41773 (Many libstdc++ failures) 2009-10-20 21:54:22 +00:00
boost_concept_check.h
c++config configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers. 2009-11-30 23:22:04 +00:00
char_traits.h
codecvt.h
concept_check.h
cpp_type_traits.h
deque.tcc stl_deque.h (copy_backward(_Deque_iterator, _Deque_iterator, _Deque_iterator), [...]): Declare. 2009-12-24 12:47:37 +00:00
forward_list.h forward_list.h (forward_list<>::erase_after): Change signature per N2988, return void; simplify. 2009-11-13 22:41:49 +00:00
forward_list.tcc forward_list.h (forward_list<>::erase_after): Change signature per N2988, return void; simplify. 2009-11-13 22:41:49 +00:00
fstream.tcc
functexcept.h functional (function::function): Move construct target. 2009-12-15 17:42:47 +00:00
functional_hash.h re PR libstdc++/41622 ([DR 1245] [c++0x] std::hash<std::string>::operator() copies its argument) 2009-11-19 16:55:25 +00:00
gslice_array.h
gslice.h
hashtable.h
indirect_array.h
ios_base.h
istream.tcc
list.tcc stl_list.h (splice(iterator, list&), [...]): Re-add in C++0x mode for backward compatibility (see DR 1133). 2009-12-14 10:26:09 +00:00
locale_classes.h
locale_classes.tcc
locale_facets_nonio.h re PR libstdc++/38081 (time_get<>::do_get_weekday does not always recognize full names of weekdays) 2010-01-05 20:05:20 +00:00
locale_facets_nonio.tcc locale_facets_nonio.tcc (time_put<>::do_put): Avoid pointless __builtin_alloca use. 2010-01-07 17:20:45 +00:00
locale_facets.h
locale_facets.tcc
localefwd.h
mask_array.h
move.h type_traits (declval): Add, per DR 1255. 2009-11-13 02:25:12 +00:00
ostream_insert.h
ostream.tcc
postypes.h
random.h random.h: Fix equation in comment of Weibull distro. 2009-12-30 02:08:23 +00:00
random.tcc random.tcc: Define static const data members. 2009-09-30 00:50:24 +00:00
shared_ptr_base.h re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti) 2009-11-20 21:23:02 +00:00
shared_ptr.h re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti) 2009-11-20 21:23:02 +00:00
slice_array.h
sstream.tcc
stl_algo.h PR libstdc++/25304, DR 865 [Ready] 2009-12-15 00:07:52 +00:00
stl_algobase.h PR libstdc++/25304, DR 865 [Ready] 2009-12-15 00:07:52 +00:00
stl_bvector.h re PR libstdc++/42573 ([C++0x] shrink_to_fit() missing) 2010-01-08 13:01:24 +00:00
stl_construct.h
stl_deque.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_function.h
stl_heap.h
stl_iterator_base_funcs.h stl_iterator_base_funcs.h: (next): Change template parameter name consistently with the resolution of DR... 2009-10-28 13:07:00 +00:00
stl_iterator_base_types.h user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
stl_iterator.h stl_iterator.h.: Fix typo in comment. 2009-12-30 10:34:41 +00:00
stl_list.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_map.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_multimap.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_multiset.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_numeric.h PR libstdc++/22634, DR 539 [Ready] 2009-12-11 17:54:37 +00:00
stl_pair.h stl_pair.h (pair<>::pair(_U1&&, const _T2&), [...]): Use std::is_constructible instead of std::is_convertible. 2010-01-03 12:06:59 +00:00
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stl_stack.h
stl_tempbuf.h user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
stl_tree.h
stl_uninitialized.h
stl_vector.h set.h: Protect move assignment operator vs self assignment. 2010-01-09 02:49:53 +00:00
stream_iterator.h user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
streambuf_iterator.h user.cfg.in: Adjust includes. 2009-11-06 22:15:17 +00:00
streambuf.tcc
stringfwd.h
unique_ptr.h
valarray_after.h
valarray_array.h re PR libstdc++/41763 (valarray_array.h seems to overuse __restrict__) 2009-10-20 21:21:11 +00:00
valarray_array.tcc
valarray_before.h
vector.tcc