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