// RUN: %clang_cc1 -std=c++1y -verify %s // expected-no-diagnostics template struct A { template struct B; template struct B; }; template template struct A::B {}; template struct A; A::B b; template struct B { template static const int var1; template static const int var1; template static const int var2; }; template template const int B::var1 = 1; template template const int B::var2 = 1; template struct B; int b_test1[B::var1]; int b_test2[B::var2];