+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.
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;
#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() {} };
#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
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:
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;
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);
}
#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);
}