EGCS 1.0.3a - Internal compiler error

Alexandre Oliva oliva@dcc.unicamp.br
Sun Feb 28 23:30:00 GMT 1999


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




More information about the Gcc-bugs mailing list