// { dg-do compile { target c++14 } } // Template variables and static member variables of template classes are // often confused. template struct S1 { static int n; static int arr[]; }; template constexpr int var = sizeof (T); template int S1::n = sizeof (T); template int S1::arr[sizeof (T)]; template<> int S1::n = 8; template<> int S1::arr[8]; int main () { S1 v1; var>; return 0; }