2 // { dg-do compile { target c++11 } }
5 template <unsigned long, typename...> struct B;
6 template <unsigned long I, typename H> struct B<I, H> { int b; };
7 template <typename... E> struct C { B<0, E...> c; C (C &) = default; C (C &&); };
8 template <typename> struct tuple_size;
9 template <> struct tuple_size<C<int>> { static constexpr int value = 1; };
10 template <int, typename> struct tuple_element;
11 template <typename H, typename... T>
12 struct tuple_element<0, C<H, T...>> { typedef int type; };
13 template <int, typename... E>
14 int &&get (C<E...> &&);
19 auto[x0] = t; // { dg-warning "structured bindings only available with" "" { target c++14_down } }