This is the mail archive of the gcc-bugs@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]

Re: Bug in egcs g++


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


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