c++ operator overloading ICE

Sefer Tov sefer@hotmail.com
Tue Sep 19 01:47:00 GMT 2000


Hi,
The latest gcc/g++ (18/9/2000) appears to still contain a bug on (at least) 
linux i686.

Here's the error message and a minimal preprocessed code that reproduces the 
problem.


/opt/gcc-2.96/bin/gcc -v -save-temps b.cc
Reading specs from /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000917 (experimental)
/opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.96/cpp0 -lang-c++ -D__GNUG__=2 
-v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix 
-Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) 
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentiumpro__ 
b.cc b.ii
GNU CPP version 2.96 20000917 (experimental) (cpplib)
(i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/qt/include
/opt/gcc-2.96/include/g++-3
/usr/local/include
/opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.96/include
/opt/gcc-2.96/i686-pc-linux-gnu/include
/usr/include
End of search list.
/opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.96/cc1plus -lang-c++ b.ii 
-quiet -dumpbase b.cc -version -o b.s
GNU C++ version 2.96 20000917 (experimental) (i686-pc-linux-gnu) compiled by 
GNU C version 2.96 20000917 (experimental).
b.cc:3: `operator new' takes type `size_t' as first parameter
b.cc:3: Internal error #73.
b.cc:3: Internal compiler error in , at method.c:1461
   Please submit a full bug report.
   See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.



# 1 "b.cc"
void *operator new(unsigned long size,const char *curFile,unsigned long 
curLine,const char *curFunction)
{
}

void main()
{
}


Thanks,
  Sefer.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .



More information about the Gcc-bugs mailing list