1// { dg-do run } 2// { dg-options "-ansi -pedantic-errors -w" } 3struct S 4{ 5 template <class U> 6 struct Y { 7 template <class T> 8 void foo(T t); 9 }; 10}; 11 12template <> 13template <> 14void S::Y<char>::foo<int>(int i) { } 15 16int main() 17{ 18 S::Y<char> s; 19 s.foo<int>(3.0); 20} 21