internal compiler error

Alexandre Oliva oliva@dcc.unicamp.br
Tue Sep 8 23:54:00 GMT 1998


Axel Schmitz-Tewes <uzs59g@ibm.rhrz.uni-bonn.de> writes:

>> ellol.cpp:24: Internal compiler error 9.
>> ellol.cpp:24: Please submit a full bug report to `egcs-bugs@cygnus.com'.

Thanks for your report.  egcs 1.1 prints instead:

test.cc:22: template-id `PrintType<T>' in declaration of primary template
test.cc: In function `int main(int, char **)':
test.cc:33: `CLassAOrB' undeclared (first use this function)
test.cc:33: (Each undeclared identifier is reported only once
test.cc:33: for each function it appears in.)
test.cc:33: template argument 1 is invalid
test.cc:33: no matching function for call to `PrintType ()'

After removing the incorrect extra `<class T>' in the declaration of
PrintType and replacing the upper-case `L' with `l' in `CLassAOrB',
the code should compile fine.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list