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: GNU C++ error


> And also, finally, I am sending this message duplicated because the same=20
> error was produced by g++ 2.8.1 (MIT) and egcs 2.9.20 (Cygnus).

Thanks for your bug report. It seems you've confused the egcs version
number, though - there is no 2.9.20.

> The error was (the same for the two compilers):
> pru_tem3:8:internal compiler error
> pru_tem3:8:please send a complete bug report to egcs-bugs@cygnus.com

I've tried it with egcs-2.93.08, and it does not crash. It seems the
bug has been fixed.

> pru_tem3.cpp contains the templated function and an especialization of it.

Instead, I now get

pru_tem3.cpp:8: template-id `conv<const char *, int>' in declaration of primary template

You've got confused witht the specialization syntax, what you actually
meant was

template<>
void conv<char*, int>(char* const& x,int& y)

Hope this helps,
Martin


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