1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-do assemble } // { dg-options "" } class S { public: void (S::*pmf)(); void foo() { pmf(); // { dg-error "pointer-to-member" } } static void foo1(S* sp) { (sp->pmf)(); // { dg-error "pointer-to-member" } } };