This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] [PR15967] Fix ICE with ambiguous operator new


> 
> > testsuite/
> >         * g++.dg/lookup/crash3.C: New test.
> 
> The testcase is not portable.  I get 
> 
> crash3.C:7: error: `operator new' takes type `size_t' (`long unsigned int') 
> as first parameter
> crash3.C:8: error: `operator new' takes type `size_t' (`long unsigned int') 
> as first parameter
> crash3.C: In function `int crash()':
> crash3.C:14: error: no suitable or ambiguous `operator new' found in class 
> `C'
> 
> on SPARC 64-bit (3.4 branch).
> 
> 
> You might want to try
> 
> typedef __SIZE_TYPE__ size_t;

I just fixed this as I was seeing them on powerpc-apple-darwin also.
See <http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01551.html>.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]