1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 // PR5681 4 template <class T> struct Base { 5 struct foo {}; 6 int foo; 7 }; 8 9 template <class T> struct Derived : Base<T> { 10 typedef struct Base<T>::foo type; 11 }; 12 13 template struct Derived<int>; 14