This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] [PR15967] Fix ICE with ambiguous operator new
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: ebotcazou at libertysurf dot fr (Eric Botcazou)
- Cc: giovannibajo at libero dot it (Giovanni Bajo), gcc-patches at gcc dot gnu dot org
- Date: Sat, 19 Jun 2004 12:42:59 -0400 (EDT)
- Subject: 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