1// { dg-do assemble } 2// GROUPS passed templates membertemplates 3template <class T> 4struct R 5{ 6 template <class U> 7 void g(U u) {} 8}; 9 10template <class T> 11struct S 12{ 13 template <class U> 14 void f(U u) { R<T> r; r.g(u); } 15}; 16 17void foo() 18{ 19 S<int> si; 20 si.f("abc"); 21} 22