// { dg-do compile { target c++11 } } template struct A { constexpr T f (); }; int g(); // We should complain about this. template<> constexpr int A::f() { return g(); } // { dg-error "non-constexpr" } // But not about this. struct B { int i; constexpr B(int i = g()):i(i) { } }; struct C: B { }; C c;