This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GNU C++ error
- To: jgarcia at ancares dot ei dot uvigo dot es
- Subject: Re: GNU C++ error
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 26 Feb 1999 18:41:58 +0100
- CC: egcs-bugs at cygnus dot com, bug-g++ at prep dot ai dot mit dot edu
- References: <Pine.SUN.3.91.990226141129.3323A-300000@ancares>
> 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