https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128657
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This fixes the inconsistency between the declaration and definition:
--- /home/jwakely/gcc/16.1.0/include/c++/16.1.0/type_traits~ 2026-11-12
09:54:38.205357145 +0000
+++ /home/jwakely/gcc/16.1.0/include/c++/16.1.0/type_traits 2026-11-12
09:54:40.839359541 +0000
@@ -3046,12 +3046,27 @@
{ };
/// @endcond
+template <typename _Tp>
+ inline constexpr bool is_move_constructible_v
+ = __is_constructible(_Tp, __add_rval_ref_t<_Tp>);
+
+template <typename _Tp>
+ inline constexpr bool is_move_assignable_v
+ = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>);
+
template<typename _Tp>
+#if __glibcxx_concepts // >= C++20
+ requires (! __is_tuple_like<_Tp>::value)
+ && is_move_constructible_v<_Tp>
+ && is_move_assignable_v<_Tp>
+ constexpr void
+#else
_GLIBCXX20_CONSTEXPR
inline
_Require<__not_<__is_tuple_like<_Tp>>,
is_move_constructible<_Tp>,
is_move_assignable<_Tp>>
+#endif
swap(_Tp&, _Tp&)
noexcept(__and_<is_nothrow_move_constructible<_Tp>,
is_nothrow_move_assignable<_Tp>>::value);
@@ -3686,18 +3701,12 @@
template <typename _Tp>
inline constexpr bool is_copy_constructible_v
= __is_constructible(_Tp, __add_lval_ref_t<const _Tp>);
-template <typename _Tp>
- inline constexpr bool is_move_constructible_v
- = __is_constructible(_Tp, __add_rval_ref_t<_Tp>);
template <typename _Tp, typename _Up>
inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up);
template <typename _Tp>
inline constexpr bool is_copy_assignable_v
= __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>);
-template <typename _Tp>
- inline constexpr bool is_move_assignable_v
- = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>);
#if _GLIBCXX_USE_BUILTIN_TRAIT(__is_destructible)
template <typename _Tp>