On Mon, 4 Aug 2025, hexne wrote:

> Previously, std::ranges::shift_left and std::ranges::shift_right did
> not use feature test macros, so compiling std.cc files under c++20
> would result in compilation failure

Thanks for the patch (and the std::byteswap one)!  They have been
folded into a larger missing export patch which has been pushed as
https://gcc.gnu.org/cgit/gcc/commit/?id=490c2c885ee5de1659d8339ea6bedd908acfacea

> 
> Tested on x86_64-linux.
> 
> Signed-off-by: hexne <print...@gmail.com>
> 
> diff --git a/libstdc++-v3/src/c++23/std.cc.in 
> b/libstdc++-v3/src/c++23/std.cc.in
> index 9301ed90c00..1c2346b9f63 100644
> --- a/libstdc++-v3/src/c++23/std.cc.in
> +++ b/libstdc++-v3/src/c++23/std.cc.in
> @@ -277,15 +277,14 @@ export namespace std
>      using std::ranges::shuffle;
>    }
>    using std::shift_left;
> -  namespace ranges
> -  {
> -    using std::ranges::shift_left;
> -  }
>    using std::shift_right;
> +#if __cpp_lib_shift >= 202202L
>    namespace ranges
>    {
> +    using std::ranges::shift_left;
>      using std::ranges::shift_right;
>    }
> +#endif
>    using std::sort;
>    namespace ranges
>    {
> 
> 

Reply via email to