2 // { dg-do compile { target c++14 } }
7 template <class U> static U x;
21 U Y<float>::x<U> = 42; // { dg-error "partial specialization" }
25 int Y<float>::x<int> = 42; // { dg-bogus "non-member-template declaration" }
30 template <class U> struct ZZ
32 template <class V> static V x;
39 V Z<T>::ZZ<U>::x = V();
44 V Z<int>::ZZ<int>::x = V();
50 template <class V> static V x;
56 V Z<float>::ZZ<U>::x = V();
61 int Z<float>::ZZ<int>::x<int> = 42; // { dg-bogus "non-member-template declaration" }
65 int y = Y<int>::x<int>;
66 int z = Z<float>::ZZ<int>::x<int>;