1// PR c++/60241 2 3template <typename T> 4struct x 5{ 6 template <typename U> 7 struct y 8 { 9 typedef T result2; 10 }; 11 12 typedef y<int> zy; 13}; 14 15template<> 16template<class T> 17struct x<int>::y 18{ 19 typedef double result2; 20}; 21 22int main() 23{ 24 x<int>::zy::result2 xxx; 25 x<int>::y<int>::result2 xxx2; 26} 27