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: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: "Giovanni Bajo" <giovannibajo at libero dot it>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 19 Jun 2004 18:39:56 +0200
- Subject: Re: [C++ PATCH] [PR15967] Fix ICE with ambiguous operator new
- References: <2da001c451fc$7a7ce370$444e2a97@bagio>
> 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;
instead.
--
Eric Botcazou