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]

internal compiler error



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.




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