blob: eb1d3fba10ed1eb58301ba7adb073daa0a68838d [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// PR4382
3template<typename T> struct X { static const T A = 1; };
4template<typename T, bool = X<T>::A> struct Y { typedef T A; };
5template<typename T> struct Z { typedef typename Y<T>::A A; };
6extern int x;
7extern Z<int>::A x;