missing <T> gives internal compiler error

Ingolf Koch ingolf@mathematik.uni-jena.de
Mon Jan 19 02:20:00 GMT 1998


Hi,

the following piece of code leads to an internal compiler
error:

% cat intcomperr.cc
template<class T> class A {
    public:
        class subA {};
};


template<class T> class B : public A<T> {
    public:
        class subB : public A::subA {};
//                          ^ note the missing <T>
};


% eg++ -v -o intcomperr.o -c intcomperr.cc
Reading specs from /usr/llocal/egcs/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
 /usr/llocal/egcs/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -Dunix -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Amachine(alpha) -D__EXCEPTIONS -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus intcomperr.cc /tmp/ccaameta.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release)
#include "..." search starts here:
#include <...> search starts here:
 /usr/llocal/egcs/include/g++
 /usr/local/include
 /usr/llocal/egcs/alphaev56-dec-osf4.0b/include
 /usr/llocal/egcs/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.90.23/include
 /usr/include
End of search list.
 /usr/llocal/egcs/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.90.23/cc1plus /tmp/ccaameta.ii -quiet -dumpbase intcomperr.cc -version -o /tmp/ccaameta.s
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release) (alphaev56-dec-osf4.0b) compiled by GNU C version 2.7.2.3.
intcomperr.cc:9: Internal compiler error.
intcomperr.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.


% uname -a
OSF1 maxp09.mathe.uni-jena.de V4.0 564 alpha


Regards
-- 

Ingolf Koch         http://www.minet.uni-jena.de/~ingolf/ 
FSU Jena, Institut fuer Angewandte Mathematik, 07740 Jena



More information about the Gcc-bugs mailing list