// PR c++/59268 // { dg-do compile { target c++11 } } template struct A { constexpr A (int) {} virtual void foo () { constexpr A a (0); } }; void bar () { A a (3); a.foo (); }