FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / pmf2.C
blob7ebb23b095fdcd7d23ae6e028425ce851e24834b
1 // PRMS Id: 4484 (bug 3)
2 // Bug: g++ does implicitly take the address of methods passed to fns.
3 // Build don't link:
5 struct A {
6   void f ();
7 };
9 void g (void (A::*)());
11 void h () {
12   g (A::f);                     // ERROR - failed conversion to method pointer