gcc/libstdc++-v3/testsuite
Paolo Carlini 91675f9d25 re PR libstdc++/12352 (Exception safety problems in src/localename.cc)
2003-09-25  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/12352
	* src/localename.cc (locale::_Impl::_Impl(const _Impl&,
	size_t)): Don't leak if memory allocations for _M_facets,
	_M_caches, and _M_names fail.
	(locale::_Impl::_Impl(const char*, size_t)): Ditto.
	(locale::_Impl::_M_replace_categories(const _Impl*,
	category)): Ditto.
	(locale::_Impl::_M_install_facet(const locale::id*,
	const facet*)): Ditto.
	* include/bits/locale_classes.h (locale::locale(const locale&,
	_Facet*)): Don't leak memory.
	* testsuite/22_locale/locale/cons/12352.cc: New, from the PR.

	* src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
	bool)): Qualify with std:: strcpy, tweak.
	* include/bits/locale_classes.h
	(locale::_Impl::_M_check_same_name): Qualify strcmp.

From-SVN: r71808
2003-09-26 00:22:01 +00:00
..
17_intro locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
18_support locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
19_diagnostics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
20_util locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
21_strings locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
22_locale re PR libstdc++/12352 (Exception safety problems in src/localename.cc) 2003-09-26 00:22:01 +00:00
23_containers locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
24_iterators locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
25_algorithms locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
26_numerics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
27_io locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
backward locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
config *.cc: Remove spaces, make sure testcases return zero. 2001-05-12 16:53:08 +00:00
data cin_unget-1.txt: New. 2003-08-26 11:46:22 +00:00
demangle *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
ext locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
lib Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS): Remove unneeded variable assignments. 2003-08-05 01:34:28 +00:00
libstdc++-dg Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS): Remove unneeded variable assignments. 2003-08-05 01:34:28 +00:00
performance locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
thread locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
abi_check.cc create_testsuite_files: New file. 2003-07-06 03:14:37 +00:00
Makefile.am Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
Makefile.in Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
printnow.c libstdc++-v3: New directory. 2000-04-21 20:33:34 +00:00
testsuite_allocator.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_allocator.h *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_hooks.cc testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
testsuite_hooks.h locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
testsuite_io.h *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_performance.h Makefile.am (check-abi): Change libstdc++-v3 to libstdc++. 2003-08-08 15:24:00 +00:00