2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / pmftemp.C
blobd54fc57fffb0f7fbe32f10d866c4d30d71fa44a0
1 // { dg-do assemble  }
2 // PRMS Id: 4484 (bug 1)
3 // Bug: g++ does not support templates involving method pointers.
5 struct A {
6   void f ();
7 };
9 template <class T> void
10 f (void (T::*p)())              // { dg-bogus "" } use of template parm as aggregate
11 { }
13 void g ()
15   f (&A::f);                    // { dg-bogus "" } templates and method pointers