internal compiler error
Jonathan Magid
jem@sunsite.unc.edu
Wed Jun 3 12:11:00 GMT 1998
Hi-
I'm using egcs 1.03:
$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
and I got the following error message:
$ g++ -c jemvect.cc
jemvect.cc:12: Internal compiler error.
jemvect.cc:12: Please submit a full bug report to `egcs-bugs@cygnus.com'.
>From putting the return type in the wrong place in a template method
definition:
T& template<class T> jemvect<T>::operator[] (int index) const {
}
instead of:
template<class T> T& jemvect<T>::operator[] (int index) const {
}
hope this was helpful.
cheers,
jem.
More information about the Gcc-bugs
mailing list