1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do assemble } // Origin: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> double f(double); typedef double (*M)(double); class A { public: template <const M n> void g(); }; class B: public A { public: void g() { A::g<f>(); } };