// RUN: %clang_cc1 -fsyntax-only -verify %s // PR4382 template struct X { static const T A = 1; }; template::A> struct Y { typedef T A; }; template struct Z { typedef typename Y::A A; }; extern int x; extern Z::A x;