// PR c++/91360 - Implement C++20 P1143R2: constinit // { dg-do compile { target c++20 } } // Variable templates. int nonconst; template constinit T v1 = 42; template constinit T v2 = nonconst; // { dg-error "does not have a constant initializer|not usable" } void fn () { v1; v2; }