https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79205

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
template <unsigned long, typename...> struct B;
template <unsigned long I, typename H> struct B<I, H> { int b; };
template <typename... E> struct C { B<0, E...> c; C (C &) = default; C (C &&);
};
template <typename> struct tuple_size;
template <> struct tuple_size<C<int>> { static constexpr int value = 1; };
template <int, typename> struct tuple_element;
template <typename H, typename... T>
struct tuple_element<0, C<H, T...>> { typedef int type; };
template <int, typename... E>
int &&get (C<E...> &&);

void
foo (C<int> t)
{
  auto[x0] = t;
}

Reply via email to