This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: internal compiler error


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]