1 // Contributed by Dodji Seketeli <dodji@redhat.com>
4 template <class C, void (C::*M) ()>
6 void foo(void *obj) // { dg-message "note" }
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)" }
17 // { dg-message "candidate" "candidate note" { target *-*-* } 16 }