Clang Project

clang_source_code/test/SemaTemplate/instantiate-dependent-nested-name.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2// expected-no-diagnostics
3// 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;
9