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