// PR c++/71954 // A version of var-templ84.C where the partial specializations depend on // outer template parameters. // { dg-do compile { target c++14 } } template struct A { template static const int var = 0; template static const int var = 1; template static const int var = 2; }; static_assert(A::var == 0, ""); static_assert(A::var == 1, ""); static_assert(A::var == 2, ""); static_assert(A::var == 0, ""); static_assert(A::var == 0, ""); static_assert(A::var == 0, "");