1 // { dg-do compile } 2 3 class basic_ostream { 4 public: 5 basic_ostream &operator<<(basic_ostream &p1(basic_ostream &)) { 6 return p1(*this); 7 } 8 } a; 9 void fn1() __attribute__((__noreturn__)); fn2(basic_ostream &)10basic_ostream &fn2(basic_ostream &) { fn1(); } fn3()11void fn3() { a << fn2; } 12