// { dg-options -std=c++0x } template struct A { constexpr static T t; }; template constexpr T A::t = T(); // { dg-error "not literal" } struct B { ~B(); }; B b = A::t;