// PR c++/55944 // { dg-do compile { target c++11 } } template struct Test { constexpr Test(T val) : value(val) {} static void test() { static constexpr Test x(42); // ICE } T value; }; int main() { static constexpr Test x(42); // OK Test::test(); }