internal compiler error
Enrico Zini
zinie@cs.unibo.it
Fri Apr 10 16:25:00 GMT 1998
Hello!
[All my gratitude for your worderful work is obvious and therefore is omitted
for the sake of brevity]
It seems I've found a bug in both egcc and gcc when experimenting some weird
c++ code:
* Here is what I got:
enrico@marvin:~$ uname -a
Linux marvin 2.0.32 #1 dom mar 1 20:01:30 CET 1998 i586 unknown
enrico@marvin:~/dev/cc$ egcc --version
egcs-2.90.23 980102 (egcs-1.0.1 release)
enrico@marvin:~/dev/cc$ gcc --version
2.8.0
enrico@marvin:~/dev/cc$ egcc -I/usr/include/g++ -c ice.cc
ice.cc:20: Internal compiler error 40.
ice.cc:20: Please submit a full bug report to `egcs-bugs@cygnus.com'.
enrico@marvin:~/dev/cc$ gcc -I/usr/include/g++ -c ice.cc
ice.cc:20: Internal compiler error 40.
ice.cc:20: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.
* And here is ice.cc:
- - - - - - - - - - -
class base
{
public:
virtual void method()=0;
};
class der: public base
{
public:
template<class C>
void method()
{
C foo;
}
};
main()
{
return 0;
}
- - - - - - - - - - -
Sould it be useful for you to know, my computer is a Debian GNU/Linux 2.0
installed when it was still the `unstable' distribution; the cpu is
an Intel Pentium 133Mhz, with 48Mb ram and a 100Mb swap file.
Hoping to have been useful and to hear some feedback, Enrico
More information about the Gcc-bugs
mailing list