// PR c++/60999 // { dg-do compile { target c++11 } } template struct foo { }; template<> struct foo { static constexpr int code = 42; unsigned int bar = static_cast(code); }; foo a;