https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115421
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- apinski@xeond:~/src/upstream-gcc-match$ /lib/x86_64-linux-gnu/libc.so.6 GNU C Library (Ubuntu GLIBC 2.35-0ubuntu3.8) stable release version 2.35. Copyright (C) 2022 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. Compiled by GNU CC version 11.4.0. libc ABIs: UNIQUE IFUNC ABSOLUTE For bug reporting instructions, please see: <https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>. apinski@xeond:~/src/upstream-gcc-match$ ~/upstream-gcc-match/bin/g++ -static -g -lpthread t.cc apinski@xeond:~/src/upstream-gcc-match$ ./a.out Usage: sleepy-thread N apinski@xeond:~/src/upstream-gcc-match$ ./a.out 4 abcd