// { dg-do run } // Bug: g++ doesn't find the conversion from ostream_withassign to ostream. #include template struct A { T t; }; template std::ostream & operator<< (std::ostream & os, A & a) { os << a.t; return os; } int main () { A a = { 1 }; std::cout << a << std::endl; }