This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: internal compiler error
- To: Axel Schmitz-Tewes <uzs59g at ibm dot rhrz dot uni-bonn dot de>
- Subject: Re: internal compiler error
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 09 Sep 1998 00:26:46 z
- Cc: egcs-bugs at cygnus dot com
- References: <35EFEFF3.46228E74@ibm.rhrz.uni-bonn.de>
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