gcc/libstdc++-v3/testsuite/23_containers
Paolo Carlini 996e539545 vector.tcc (_M_insert_aux, [...]): Check at the outset that we are not trying to exceed max_size...
2004-10-21  Paolo Carlini  <pcarlini@suse.de>
	    Dhruv Matani  <dhruvbird@gmx.net>
	    Nathan Myers  <ncm@cantrip.org>

	* include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
	_M_range_insert): Check at the outset that we are not trying
	to exceed max_size, then deal properly with __len overflows.
	* testsuite/23_containers/vector/modifiers/insert/1.cc: New.

	* testsuite/testsuite_allocator.h: Remove redundant include.

Co-Authored-By: Dhruv Matani <dhruvbird@gmx.net>
Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r89377
2004-10-21 14:53:02 +00:00
..
bitset re PR libstdc++/16020 (cannot copy __gnu_debug::bitset) 2004-06-18 17:13:35 +00:00
deque re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
list re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
map decl.c (grokfndecl): If ::main is found not to return int, correct it after issuing a diagnostic. 2004-09-23 21:27:25 +00:00
multimap re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
multiset re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
priority_queue/members 1.cc: Provide explicit instantiations for non-weak systems. 2004-03-04 18:11:08 +00:00
queue/members 1.cc: Provide explicit instantiations for non-weak systems. 2004-03-04 18:11:08 +00:00
set [multiple changes] 2004-10-13 00:11:14 +00:00
stack/members 1.cc: Provide explicit instantiations for non-weak systems. 2004-03-04 18:11:08 +00:00
vector vector.tcc (_M_insert_aux, [...]): Check at the outset that we are not trying to exceed max_size... 2004-10-21 14:53:02 +00:00