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