1// { dg-do assemble } 2// PRMS Id: 4484 (bug 1) 3// Bug: g++ does not support templates involving method pointers. 4 5struct A { 6 void f (); 7}; 8 9template <class T> void 10f (void (T::*p)()) // { dg-bogus "" } use of template parm as aggregate 11{ } 12 13void g () 14{ 15 f (&A::f); // { dg-bogus "" } templates and method pointers 16} 17