From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jimen Ching To: egcs-bugs@cygnus.com Subject: bug report Date: Sat, 31 Jan 1998 18:54:00 -0000 Message-id: X-SW-Source: 1998-01/msg00569.html List-Id: Here's another bug report: bug8.cc:10: warning: friend declaration `class ostream & operator <<(class ostream &, const struct Y &)' bug8.cc:10: warning: will not be treated as a template instantiation bug8.cc:10: warning: unless you compile with -fguiding-decls bug8.cc:10: warning: or add <> after the function name bug8.cc: In function `class ostream & operator <<(class ostream &, const struct Y &)': bug8.cc:16: Internal compiler error 90. bug8.cc:16: Please submit a full bug report to `egcs-bugs@cygnus.com'. I already know about adding the "<>". But the ICE is at line 16. Btw, what does the syntax look like if I were to add the "<>" to operator< #include template struct Y { typedef list list_type; Y() {} friend ostream &operator<<(ostream &, const Y &); }; template ostream & operator<<(ostream &o, const Y &) { typedef Y::list_type::iterator i; return o; } struct X { X() {} }; int main() { Y yx; cout << yx << endl; }