1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// { dg-do assemble } void h(int); template <class T> class i {}; struct B { int i; }; template <class T> struct D : public B { void f(); void g() { h(i); } }; template <class T> void D<T>::f() { h(i); }