1 // { dg-do assemble } 2 // prms-id: 4484 3 4 class A { 5 char buf[64]; 6 }; 7 8 typedef void (A::*pmf)(); 9 typedef void (A::*pmfc)() const; 10 11 pmfc p = (pmfc)(pmf)0; 12 13 class B { 14 }; 15 16 class D : public A, public B { 17 }; 18 19 typedef int (B::*bmfp)(); 20 typedef int (D::*dmfp)(); 21 22 bmfp foo; 23 bar(dmfp a)24void bar(dmfp a) { 25 bar(foo); 26 } 27