gcc/libstdc++-v3/testsuite/ext
Paolo Carlini 66143232bc re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep)
2005-05-18  Paolo Carlini  <pcarlini@suse.de>
	    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/19495
	* include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
	size_type instead of char and rename to _Raw_alloc.
	* include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
	Use the above.
	* src/bitmap_allocator.cc: Add instantiation for size_type.
	* src/mt_allocator.cc: Likewise.
	* src/pool_allocator.cc: Likewise.
	* include/ext/array_allocator.h: Tweak slightly, avoid assuming
	the existence of an _Array::begin() and size() members.
	* testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
	of size_type, instead of char, thus avoiding problems with
	rebinds, not treated correctly by array_allocator.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r99933
2005-05-18 22:11:24 +00:00
..
array_allocator re PR libstdc++/19495 (basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep) 2005-05-18 22:11:24 +00:00
bitmap_allocator check_allocate_max_size.cpp: Add explicit instantiations for systems without weak symbols. 2005-04-21 04:21:51 +00:00
debug_allocator testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
enc_filebuf 13189.cc: Fix, first include testsuite_hooks.h, to know whether including ext/enc_filebuf.h. 2005-01-01 23:14:53 +00:00
hash_map binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
hash_set binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
malloc_allocator testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
mt_allocator test.html: Update. 2005-04-07 04:16:26 +00:00
new_allocator testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
pool_allocator testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
rope binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
slist headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
stdio_filebuf/char test.html: Update. 2005-04-07 04:16:26 +00:00
stdio_sync_filebuf testsuite_hooks.cc: Remove try_named_locale. 2005-05-18 08:07:32 +00:00
concept_checks.cc binders.cc: Remove explicit instantiations for non-weak systems. 2005-03-16 11:24:36 +00:00
headers.cc headers.cc: Add includes, compile only. 2004-10-14 21:34:52 +00:00
pod_char_traits.cc locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00