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