gcc/libstdc++-v3/testsuite/23_containers/vector
Matthew Levine be1088fa6a re PR libstdc++/31370 (resizing bugs in std::vector<bool>)
2007-04-02  Matthew Levine  <gcc@severeweblint.org>
	    Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/31370
	* include/bits/stl_bvector.h (vector<bool>::max_size): Fix.
	(vector<bool>::_M_check_len): Add.
	* include/bits/vector.tcc (_M_fill_insert(iterator, size_type, bool),
	_M_insert_range(iterator, _ForwardIterator, _ForwardIterator,
	std::forward_iterator_tag), _M_insert_aux(iterator, bool)): Use it.
	* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: New.
	* testsuite/23_containers/vector/bool/capacity/29134.cc: Adjust.

	* include/bits/stl_vector.h (vector<>::_M_check_len): Add.
	* include/bits/vector.tcc (_M_insert_aux(iterator, const _Tp&),
	_M_fill_insert(iterator, size_type, const value_type&),
	_M_range_insert(iterator, _ForwardIterator, _ForwardIterator,
	std::forward_iterator_tag)): Use it.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r123424
2007-04-02 10:15:50 +00:00
..
bool re PR libstdc++/31370 (resizing bugs in std::vector<bool>) 2007-04-02 10:15:50 +00:00
capacity testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter. 2006-10-03 17:01:57 +00:00
cons testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter. 2006-10-03 17:01:57 +00:00
data_access PR libstdc++/23578 (DR 464 [Ready]) 2005-08-29 16:11:19 +00:00
element_access All files: Update FSF address. 2005-08-17 02:28:44 +00:00
invalidation re PR libstdc++/26142 (global debug namespace clashes everywhere) 2006-02-09 04:31:38 +00:00
modifiers sso_string_base.h (__sso_string_base<>::_M_dataplus): Use _CharT_alloc_type as base class. 2006-01-04 11:34:45 +00:00
requirements [multiple changes] 2007-02-20 18:15:01 +00:00
resize 2.cc: Fail on Darwin 8.[0-4].* only. 2006-10-04 07:57:34 +00:00
types re PR libstdc++/24617 (vector vs __erase_at_end) 2005-12-08 11:32:37 +00:00
14340.cc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
18604.cc All files: Update FSF address. 2005-08-17 02:28:44 +00:00
26412-1.cc c++config: Simplify debug namespaces. 2006-02-22 00:57:24 +00:00
26412-2.cc c++config: Simplify debug namespaces. 2006-02-22 00:57:24 +00:00
check_construct_destroy.cc testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter. 2006-10-03 17:01:57 +00:00