1 // { dg-do assemble } 2 // prms-id: 9068 3 4 struct ostream { 5 void operator<< (int); // { dg-error "" } fn ref in err msg 6 }; 7 8 class C { 9 public: 10 static int& i (); 11 static int& i (int signatureDummy); 12 }; 13 foo(ostream & lhs,const C & rhs)14void foo (ostream& lhs, const C& rhs) 15 { 16 lhs << rhs.i; // { dg-error "" } no such i for any opr << () 17 } 18 i()19int& C::i () { 20 static int _i = 4711; 21 return _i; 22 } 23