* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ice8.C
blob84bfae0007795f303b0db33c7703ff6d6302d766
1 // PR c++/53349
2 // { dg-do compile { target c++11 } }
4 template <int N>
5 struct Foo {
6   constexpr Foo(const Foo<N-1> a) : m_a(a)     {}
7   constexpr Foo(const Foo<N> &a)  : m_a(a.m_a) {}
9   Foo<N-1> m_a;
12 template <> struct Foo<0> {};
14 constexpr Foo<1> catty1(Foo<1> x) { return x; }
15 constexpr Foo<2> catty2(Foo<1> x) { return Foo<2>(catty1(x)); }
17 constexpr auto res = catty2(Foo<1>(Foo<0>()));