* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-delegating2.C
blob35439423f7b069b8c898f64f2effd98470aebc9c
1 // PR c++/51723
2 // { dg-do compile { target c++11 } }
4 template <int... V>
5 struct A
7   static constexpr int a[sizeof...(V)] = { V... };
8 };
10 template <int... V> constexpr int A<V...>::a[];
12 struct B
14   const int* const b;
16   template <unsigned int N>
17   constexpr B(const int(&b)[N])
18   : b(b)
19   { }
21   template <int... V>
22   constexpr B(A<V...>)
23   : B(A<V...>::a)
24   { }
27 constexpr B b1 = A<10, 20, 30>::a;
28 constexpr B b2 = A<10, 20, 30>();