This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in egcs g++
- To: Ulrik Petersen <ulrikp at daimi dot au dot dk>
- Subject: Re: Bug in egcs g++
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 25 Jun 1999 21:14:35 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com, knizhnik at altavista dot net
- References: <3.0.6.32.19990625233800.0079c570@daimi.au.dk>
On Jun 25, 1999, Ulrik Petersen <ulrikp@daimi.au.dk> wrote:
> I believe I've found a bug in egcs g++ related to typedef.
> typedef void* MyVoidPtr;
> test.cpp:12: `operator new' must return type `void *'
> test.cpp:14: `operator delete' takes type `void *' as first parameter
Yup, fixed for gcc 2.95; the latest snapshot says:
t.cc: In function `static void TestCls::operator delete(void *)':
t.cc:10: warning: `void *' is not a pointer-to-object type
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists