https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124819
--- Comment #1 from anlauf at gcc dot gnu.org --- I do not see the issue on Suse Leap 16.0 with % /lib64/libc.so.6 | head -7 GNU C Library (GNU libc) stable release version 2.40 (git ef321e23c2). Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Configured for x86_64-suse-linux. Compiled by GNU CC version 13.4.0. Do you have another compiler on your system that uses the same libc?
