gcc/libstdc++-v3/testsuite
Paolo Carlini af90c8c9ae re PR libstdc++/40712 (locale(const locale&, const char*, locale::category) can create broken locale)
2009-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40712
	* config/locale/gnu/numeric_members.cc (numpunct<>::
	_M_initialize_numpunct): Dynamically allocate _M_data->_M_grouping
	and copy the langinfo data into it.
	(numpunct<>::~numpunct): Free the allocated memory.
	* config/locale/gnu/monetary_members.cc (moneypunct<>::
	_M_initialize_moneypunct): Dynamically allocate _M_data->_M_grouping,
	_M_data->_M_positive_sign, _M_data->_M_negative_sign,
	_M_data->_M_curr_symbol.
	(moneypunct<>::~moneypunct): Free the allocated memory.
	* testsuite/22_locale/moneypunct/40712.cc: New.

	* include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache):
	Do not leak memory if new throws.
	* include/bits/locale_facets_nonio.tcc
	(__moneypunct_cache<>::_M_cache): Likewise.

From-SVN: r149782
2009-07-18 22:58:10 +00:00
..
17_intro Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
18_support exception_ptr.h (exception_ptr::swap(exception_ptr&&)): Remove. 2009-06-16 22:24:41 +01:00
19_diagnostics call.c (implicit_conversion): Handle conversion from initializer-list to scalar. 2009-05-27 18:23:41 -04:00
20_util re PR libstdc++/37907 ([c++0x] support for std::is_standard_layout) 2009-07-16 16:36:10 -04:00
21_strings 3.cc: Add copyright. 2009-07-06 22:44:58 +00:00
22_locale re PR libstdc++/40712 (locale(const locale&, const char*, locale::category) can create broken locale) 2009-07-18 22:58:10 +00:00
23_containers 1.cc: Mark test as possibly unused. 2009-06-22 14:57:23 +00:00
24_iterators 2009-06-20 Paolo Carlini <paolo.carlini@oracle.com> 2009-06-21 00:57:56 +00:00
25_algorithms re PR libstdc++/40600 (pair& operator=(pair&& __p) doesn't work without inlining) 2009-06-30 12:09:57 +00:00
26_numerics re PR libstdc++/40691 (bug in logical not operator for valarray used with slice) 2009-07-08 22:26:50 +00:00
27_io istream.tcc (basic_istream<>::operator>>(short&), [...]): Implement resolution of DR 696, [Ready] in Frankfurt. 2009-07-16 12:41:03 +00:00
28_regex Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
29_atomics testsuite_common_types.h (standard_layout): Activate. 2009-07-17 00:16:33 +00:00
30_threads user.cfg.in (PREDEFINED): Add _GLIBCXX_ATOMIC_BUILTINS_*. 2009-06-23 23:24:20 +00:00
abi Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
backward Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
config Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
data Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ext * 2009-07-05 18:59:29 +01:00
lib re PR testsuite/40699 (All sparcv9 libjava execution tests fail on Solaris 11/SPARC) 2009-07-11 06:10:49 +00:00
libstdc++-abi Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
libstdc++-dg Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
performance future: New. 2009-06-21 15:02:09 +01:00
tr1 Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
util testsuite_common_types.h (standard_layout): Activate. 2009-07-17 00:16:33 +00:00
Makefile.am Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
Makefile.in