// { dg-do compile { target c++11 } } template struct A { constexpr static T t = T(); // { dg-error "literal" } }; template constexpr T A::t; struct B { ~B(); }; B b = A::t;