gcc/libstdc++-v3/testsuite
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
..
17_intro
18_support 9555-ic.cc: Clarify assertion, set test variable to false before assert. 2004-04-19 19:00:09 +00:00
19_diagnostics
20_util std_memory.h (__get_temporary_buffer): Don't use INT_MAX... 2004-10-09 08:23:02 +00:00
21_strings [multiple changes] 2004-09-28 08:58:35 +00:00
22_locale locale_facets.tcc (time_get<>::_M_extract_via_format, case 'S'): Allow for at least one leap-second (as per C99... 2004-08-29 09:04:33 +00:00
23_containers 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
24_iterators testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc, temporary_buffer.cc: Move to... 2004-07-02 20:44:08 +00:00
25_algorithms 1.cc: Add instantiations for systems with no COMDAT or weak support. 2004-07-04 11:05:14 +00:00
26_numerics complex_inserters_extractors.cc, [...]: Move to... 2004-06-22 10:52:14 +00:00
27_io [multiple changes] 2004-10-06 09:06:59 +00:00
backward testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to CXXFLAGS_save. 2004-03-04 23:29:44 +00:00
config default.exp: Update with comments. 2004-02-27 22:01:32 +00:00
data
demangle [multiple changes] 2004-02-27 03:21:16 +00:00
ext bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
lib libstdc++.exp: Update list of undefined functions. 2004-10-07 23:20:42 +00:00
libstdc++-dg default.exp: Update with comments. 2004-02-27 22:01:32 +00:00
performance list_sort_search.cc: Include <ext/new_allocator.h>. 2004-10-19 08:56:32 +00:00
thread acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread. 2004-10-06 22:12:34 +00:00
abi_check.cc abi_check.cc: Add unistd.h. 2004-05-22 17:08:02 +00:00
Makefile.am acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread. 2004-10-06 22:12:34 +00:00
Makefile.in acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread. 2004-10-06 22:12:34 +00:00
printnow.c
testsuite_abi.cc configure.ac (libtool_VERSION): To 6:3:0. 2004-10-05 05:02:58 +00:00
testsuite_abi.h abi.html: New. 2004-05-13 12:50:53 +00:00
testsuite_allocator.cc stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
testsuite_allocator.h 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
testsuite_character.h locale_facets.tcc (num_get<>::_M_extract_float, [...]): Prefer plain operator== to traits::eq(). 2004-03-06 09:00:14 +00:00
testsuite_hooks.cc re PR libstdc++/15090 (-fno-for-scope vs. libstdc++) 2004-05-13 16:29:39 +00:00
testsuite_hooks.h testsuite_hooks.h (func_callback): Declare copy constructor and assignment operator private. 2004-05-22 21:51:07 +00:00
testsuite_io.h std_sstream.h (basic_stringbuf(ios_base::openmode)): Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1. 2004-09-29 21:14:43 +00:00
testsuite_performance.h 2004-06-07 Dhruv Matani <dhruvbird@gmx.net> 2004-06-07 21:56:16 +00:00