1 // Contributed by Dodji Seketeli <dodji@redhat.com>
4 template <class C, void (C::*M) ()>
8 C *p = static_cast<C*>(obj);
14 bar(C *c, void (C::*m) ())
16 foo<C,m>((void *)c);// { dg-error "(not a valid template arg|pointer-to-member|no matching fun|could not convert|constant)" }