1// { dg-do assemble } 2 3template<class P> struct B 4{ 5 template<class T> void f(T& t) { t = T(); } 6}; 7 8enum ptype { t1, t2}; 9 10struct D : public B<ptype> 11{ 12 void g(double& d) { f(d); } 13}; 14 15 16D d; 17 18