9 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3// PR43824template<typename T> struct X { static const T A = 1; };5template<typename T, bool = X<T>::A> struct Y { typedef T A; };6template<typename T> struct Z { typedef typename Y<T>::A A; };7extern int x;8extern Z<int>::A x;9