This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: EGCS 1.0.3a - Internal compiler error
On Feb 19, 1999, Charles Duffy <cduffy@bigfoot.com> wrote:
> "template<class T> ostream& operator<< <T> (ostream& os, TList<T>& l)"
> causes an internal compiler error.
http://egcs.cygnus.com/faq.html#bugreport
> (fyi, in TList's class definition contains
> "friend class ostream& operator<< (ostream& os, TList<T>& l);"
> but the function,
> "template<class T> ostream& operator<< (ostream& os, TList<T>& l)
> { /* DoStuff */ }"
> doesn't have access to private members. Ideas?)
http://egcs.cygnus.com/faq.html#friend
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil