egcs 1.1.1 bugreport
Michael Elizarov
michael.elizarov@abgcard.ru
Mon Mar 1 23:11:00 GMT 1999
I have encountered an internal compiler error in egcs1.1.1 under Linux
2.0.30 on Pentium.
My environment is:
1. egcs 1.1.1 (complete suit with all preprocessors)
2. Linux 2.0.30
3. no options to EGCS
(command line was: g++ -o vb vector_bug.cc)
4. attached file (bugreport.tgz) contains:
vector_bug.cc -- source
vector_bug.{ii|s} -- tmp files
compilation -- contents of emacs
*compilation* window
output.2 -- stderr of
g++ -v --save-temps -o vb vector_bug.cc
EGCS 1.0.x (a part of RH 5.2 distribution) just refuses to generate code
for template function as a function argument to for_each, marking it as
a syntax error.
If I use a function (not template) everything works fine.
--
Regards, Michael Elizarov
More information about the Gcc-bugs
mailing list