3 // { dg-options "-O3" }
14 bool (A::*pmf)(int*) const;
17 B1() : pmf(&A::foo), pa(&a) {}
18 bool operator()() const { return (pa->*pmf)(new int); }
25 B2(const B1& _b1) : b1(_b1) {}
26 bool operator()() const { return b1(); }
29 template<int> struct C
31 void bar(B2 b2) { while (b2()) ; }
32 C() { bar(B2(B1())); }