blob: df463f72f7943b106176db54e63fae427b3c2958 [file] [log] [blame]
// { dg-do assemble }
// prms-id: 9068
struct ostream {
void operator<< (int); // { dg-error "candidate function not viable" }
};
class C {
public:
static int& i ();
static int& i (int signatureDummy);
};
void foo (ostream& lhs, const C& rhs)
{
lhs << rhs.i; // { dg-error "reference to overloaded function could not be resolved|invalid operands to binary expression" }
}
int& C::i () {
static int _i = 4711;
return _i;
}