https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225
--- Comment #1 from cqwrteur <unlvsur at live dot com> --- a.cc include mutex #include<mutex> x86_64-w64-mingw32-g++ -o a a.cc -Ofast -std=c++23 -s -flto -march=native -D_WIN32_WINNT=0x0500 (Any value which is below 0x0500 since GDB defines it with a lower value)