@@ -904,7 +904,7 @@ template <class _AlgPolicy, class _Type, __enable_if_t<__sort_is_specialized_in_
904904_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __sort_dispatch (_Type* __first, _Type* __last, __less<>&) {
905905#if _LIBCPP_STD_VER >= 20
906906 if (std::is_constant_evaluated ()) {
907- if (__last == first )
907+ if (__last == __first )
908908 return ;
909909
910910 auto __depth_limit = static_cast <ptrdiff_t >(2 * std::__bit_log2 (static_cast <size_t >(__last - __first)));
@@ -922,7 +922,7 @@ template <class _AlgPolicy, class _Type, __enable_if_t<__sort_is_specialized_in_
922922_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __sort_dispatch (_Type* __first, _Type* __last, less<_Type>&) {
923923#if _LIBCPP_STD_VER >= 20
924924 if (std::is_constant_evaluated ()) {
925- if (__last == first )
925+ if (__last == __first )
926926 return ;
927927
928928 auto __depth_limit = static_cast <ptrdiff_t >(2 * std::__bit_log2 (static_cast <size_t >(__last - __first)));
@@ -941,7 +941,7 @@ template <class _AlgPolicy, class _Type, __enable_if_t<__sort_is_specialized_in_
941941_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __sort_dispatch (_Type* __first, _Type* __last, less<>&) {
942942# if _LIBCPP_STD_VER >= 20
943943 if (std::is_constant_evaluated ()) {
944- if (__last == first )
944+ if (__last == __first )
945945 return ;
946946
947947 auto __depth_limit = static_cast <ptrdiff_t >(2 * std::__bit_log2 (static_cast <size_t >(__last - __first)));
@@ -960,7 +960,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void __sort_dispatch(_Type*
960960template <class _AlgPolicy , class _Type , __enable_if_t <__sort_is_specialized_in_library<_Type>::value, int > = 0 >
961961_LIBCPP_HIDE_FROM_ABI constexpr void __sort_dispatch (_Type* __first, _Type* __last, ranges::less&) {
962962 if (std::is_constant_evaluated ()) {
963- if (__last == first )
963+ if (__last == __first )
964964 return ;
965965
966966 auto __depth_limit = static_cast <ptrdiff_t >(2 * std::__bit_log2 (static_cast <size_t >(__last - __first)));
0 commit comments