// PR c++/60241 template struct x { template struct y { typedef T result2; }; typedef y zy; }; template<> template struct x::y { typedef double result2; }; int main() { x::zy::result2 xxx; x::y::result2 xxx2; }