blob: 06a1ed4119d2603cd5e8e3362c774594237bc5bf [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedman923f7532009-06-13 04:51:30 +00003// PR4382
4template<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;