// RUN: %clang_cc1 -fsyntax-only -verify %s // expected-no-diagnostics // PR5681 template struct Base { struct foo {}; int foo; }; template struct Derived : Base { typedef struct Base::foo type; }; template struct Derived;