blob: 0e7676d5819481aaa0ea28e4859090085514c26d [file] [log] [blame]
// PR c++/77777
// { dg-do compile }
struct X {
int f();
};
void g(int);
int main()
{
X x;
g(
x.f // { dg-error "invalid use of non-static member function" }
);
}