Commit 7eea775d by Paolo Carlini Committed by Paolo Carlini

re PR libstdc++/44410 (Revision 160231 caused new libstdc++ test failures)

2010-06-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/44410
	* g++.old-deja/g++.jason/new.C: Qualify size_t with std::.
	* g++.old-deja/g++.other/delete3.C: Likewise.
	* g++.old-deja/g++.other/new.C: Likewise.
	* g++.old-deja/g++.law/operators27.C: Likewise.
	* g++.old-deja/g++.mike/p755.C: Likewise.
	* g++.dg/eh/new1.C: Likewise.
	* g++.dg/init/new5.C: Likewise.

From-SVN: r160239
parent 445877a9
2010-06-03 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/44410
* g++.old-deja/g++.jason/new.C: Qualify size_t with std::.
* g++.old-deja/g++.other/delete3.C: Likewise.
* g++.old-deja/g++.other/new.C: Likewise.
* g++.old-deja/g++.law/operators27.C: Likewise.
* g++.old-deja/g++.mike/p755.C: Likewise.
* g++.dg/eh/new1.C: Likewise.
* g++.dg/init/new5.C: Likewise.
2010-06-03 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/unpack_bounds_1.f90: Remove execute property.
......
......@@ -9,7 +9,7 @@
int ret = 1;
void *ptr;
void * operator new[] (size_t s) throw (std::bad_alloc)
void * operator new[] (std::size_t s) throw (std::bad_alloc)
{
ptr = operator new (s);
return ptr;
......
......@@ -2,8 +2,8 @@
#include <new>
void * operator new[](size_t, std::nothrow_t const &) throw()
{ return NULL; }
void * operator new[](std::size_t, std::nothrow_t const &) throw()
{ return 0; }
struct X {
struct Inner { ~Inner() {} };
......
......@@ -3,10 +3,10 @@
#include <new>
extern "C" int printf (const char *, ...);
extern "C" void *malloc (size_t);
size_t s;
extern "C" void *malloc (std::size_t);
std::size_t s;
void * operator new (size_t siz) throw (std::bad_alloc) {
void * operator new (std::size_t siz) throw (std::bad_alloc) {
if (s == 0)
s = siz;
else
......
......@@ -12,7 +12,7 @@ int FLAG=0;
extern "C" int printf( const char *, ...);
void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
void * operator new(std::size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
class K {
private:
......
......@@ -6,7 +6,7 @@
extern "C" void _exit(int);
void* operator new(size_t sz) throw (std::bad_alloc) {
void* operator new(std::size_t sz) throw (std::bad_alloc) {
void* p = 0;
_exit(0);
return p;
......
......@@ -16,7 +16,7 @@ map<T, U>::~map ()
struct SomeClass { };
void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
void* operator new(std::size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
{
return operator new(numBytes, std::nothrow);
}
......
......@@ -3,12 +3,12 @@
#include <new>
inline void *
operator new(size_t alloc_sz, const char *fname, unsigned lineno)
operator new(std::size_t alloc_sz, const char *fname, unsigned lineno)
{
return ::operator new (alloc_sz);
}
inline void *
operator new[](size_t alloc_sz, const char *fname, unsigned lineno)
operator new[](std::size_t alloc_sz, const char *fname, unsigned lineno)
{
return ::operator new[] (alloc_sz);
}
......
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