blob: eb1d3fba10ed1eb58301ba7adb073daa0a68838d [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedman923f7532009-06-13 04:51:30 +00002// 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;