1 // PR c++/24560 2 3 struct A { void f(); }; g()4 void g() { A().f.a; } // { dg-error "invalid use of member function" } 5