blob: 7ff34d0498448b95ba6128cf3854ba0de01b4a3e [file] [log] [blame]
// { 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" }
}
};