1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// RUN: clang-cc -fsyntax-only -verify %s class A; class S { public: template<typename T> struct A { struct Nested { typedef T type; }; }; }; int i; S::A<int>::Nested::type *ip = &i;