------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-21 23:04 -------
Your code is incorrect, you cannot bind a rvalue to a (non-const) reference.
The way to fix it is do:
friend ostream &operator <<(ostream &, const test &);
ostream &operator <<(ostream &out, const test &tt)
Note the error message is not giving a good error message but that is a
different bug, PR 21631.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29542