Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/pmftemp.C

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