// { dg-do compile { target c++14 } } struct X { template static int x; }; int X::x = 42; // { dg-error "template" } struct Y { static int y; }; template int Y::y = 42; // { dg-error "template" }