// RUN: clang-cc -fsyntax-only -verify %s typedef double A; template class B { typedef int A; }; template struct X : B { static A a; }; int a0[sizeof(X::a) == sizeof(double) ? 1 : -1]; // PR4365. template class Q; template class R : Q {T current;};