// PR c++/116676 // { dg-do compile { target c++17 } } namespace std { typedef __SIZE_TYPE__ size_t; template struct remove_reference { typedef _Tp type; }; template struct remove_reference<_Tp&> { typedef _Tp type; }; template struct remove_reference<_Tp&&> { typedef _Tp type; }; template constexpr typename std::remove_reference<_Tp>::type && move(_Tp &&__t) noexcept { return static_cast::type &&>(__t); } template struct tuple_size; template struct tuple_element; template class __pair_base {}; template struct pair { _T1 first; _T2 second; template explicit constexpr pair(const _T1 &__a, const _T2 &__b) : first(__a), second(__b) {} }; template struct tuple_size> { static constexpr size_t value = 2; }; template struct tuple_element<0, pair<_Tp1, _Tp2>> { typedef _Tp1 type; }; template struct tuple_element<1, pair<_Tp1, _Tp2>> { typedef _Tp2 type; }; template constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type & get(pair<_Tp1, _Tp2> &&__in) noexcept { return (std::move(__in).first); } int t; auto [a, b] = std::pair{t, 1}; }