re PR libstdc++/44410 (Revision 160231 caused new libstdc++ test failures)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 3 Jun 2010 23:50:29 +0000 (23:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 3 Jun 2010 23:50:29 +0000 (23:50 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/new1.C
gcc/testsuite/g++.dg/init/new5.C
gcc/testsuite/g++.old-deja/g++.jason/new.C
gcc/testsuite/g++.old-deja/g++.law/operators27.C
gcc/testsuite/g++.old-deja/g++.mike/p755.C
gcc/testsuite/g++.old-deja/g++.other/delete3.C
gcc/testsuite/g++.old-deja/g++.other/new.C

index 53bd0bd670812ecb685dbb66edda6d523a1d3a00..99b1152b02c09221ff35badf84c3e8abbe6158fc 100644 (file)
@@ -1,3 +1,14 @@
+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.
index 4c5c684b5f2163020b8790f067ebcb2fb3e06df2..0f86fccdc937737ebca7e349839e6c746621fed3 100644 (file)
@@ -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;
index 3a5981e075cae68d684298e9331ef5115ae29458..0d99f93c6348af4e13f74927370116e2c55199ba 100644 (file)
@@ -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() {} };
index d5260ce8eca4d622ee9b54a84bfdfa88fbdf65cf..905739b1ba33313404e52335d316adaf61b320d7 100644 (file)
@@ -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
index c284a2a3cde958930e28afb68c5ec52d38f4d0d4..5fb3a74cbfaab3f165ccd404c082bdb3789f7729 100644 (file)
@@ -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:
index bf4302b797e0938f07e1bc29d6193b9f5f637d58..28eeefad43dfcd79e8d963081f88a8d2981effa9 100644 (file)
@@ -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;
index 469d6382eaec48f210dd8f1260673a0582078a1e..9c6c58e966e265547ae0190a1acb9ad945b4805c 100644 (file)
@@ -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);
 }
index c3d77c6ca63183706dec02ee8c727a333dd9f4bd..3c3494ef75996f9f8da6859aa21c1800aea1cd90 100644 (file)
@@ -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);
 }