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