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