* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-generated1.C
blob4b0d68bf6613c577842e66df38147f35e6c91274
1 // { dg-do compile { target c++11 } }
3 template <class T> struct A
5   constexpr T f ();
6 };
8 int g();
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.
15 struct B
17   int i;
18   constexpr B(int i = g()):i(i) { }
20 struct C: B { };
21 C c;