Commit 2ea247d3 by Paolo Carlini Committed by Paolo Carlini

12352.cc: Explicitly qualify exception name.

2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/locale/cons/12352.cc: Explicitly
	qualify exception name.

From-SVN: r71945
parent 155f6fbb
2003-09-30 Paolo Carlini <pcarlini@unitus.it> 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/locale/cons/12352.cc: Explicitly
qualify exception name.
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12438 PR libstdc++/12438
* include/bits/locale_facets.tcc (locale::combine): Don't * include/bits/locale_facets.tcc (locale::combine): Don't
leak memory if _M_replace_facet throws. leak memory if _M_replace_facet throws.
......
...@@ -91,7 +91,6 @@ void operator delete[](void* p, const std::nothrow_t&) throw() ...@@ -91,7 +91,6 @@ void operator delete[](void* p, const std::nothrow_t&) throw()
// libstdc++/12352 // libstdc++/12352
void test01(int iters) void test01(int iters)
{ {
using namespace std;
bool test __attribute__((unused)) = true; bool test __attribute__((unused)) = true;
for (int j = 0; j < iters; ++j) for (int j = 0; j < iters; ++j)
...@@ -101,10 +100,11 @@ void test01(int iters) ...@@ -101,10 +100,11 @@ void test01(int iters)
times_to_fail = i; times_to_fail = i;
try try
{ {
locale loc1(""); std::locale loc1("");
locale loc2(loc1, locale::classic(), locale::numeric); std::locale loc2(loc1, std::locale::classic(),
std::locale::numeric);
} }
catch (exception&) catch (std::exception&)
{ {
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment