egcs-2.91.02: Internal compiler error (static template method)
Joseph Heled
pepe@iconz.co.nz
Tue Feb 10 12:47:00 GMT 1998
(I am not sure if a template method may be static, but a core dump is always a
concern)
uname -a: SunOS zeal 5.5 Generic sun4u sparc SUNW,Ultra-1
***** Program source:
template <class T>
class X {
public:
T x;
};
class Y {
public:
template <class T> static void f(X<T>& a) {}
void g(void);
};
void
Y::g(void)
{
X<int> a;
f(a);
}
***** Compilation:
Reading specs from
/home/joseph/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.02/specs
gcc version egcs-gmake[1]: Leaving directory `/export/home/joseph/egbugs'
/sparc-sun-solaris2.5/egcs-2.91.02/cpp -lang-c++ -v -undef -D__GNUC__=2
-D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__svr4__
-D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun
-D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__
-Acpu(sparc) -Amachine(sparc) b17.cc /var/tmp/cca000Ue.ii
GNU CPP version egcs-2.91.02 971216 (gcc-2.8.0) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/home/joseph/egcs/include/g++
/usr/local/include
/home/joseph/egcs/sparc-sun-solaris2.5/include
/home/joseph/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.02/include
/usr/include
End of search list.
/home/joseph/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.02/cc1plus
/var/tmp/cca000Ue.ii -quiet -dumpbase b17.cc -version -o /var/tmp/cca000Ue.s
GNU C++ version egcs-2.91.02 971216 (gcc-2.8.0) (sparc-sun-solaris2.5) compiled
by GNU C version egcs-2.90.20 971201 (gcc2-970802 experimental).
b17.cc: In method `void Y::g()':
b17.cc:19: Internal compiler error.
b17.cc:19: Please submit a full bug report to `egcs-bugs@cygnus.com'.
gmake[1]: *** [b17] Error 1
More information about the Gcc-bugs
mailing list