https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97124
--- Comment #1 from Liu Hao <lh_mouse at 126 dot com> --- MSYS2 has this patch [1]. Should it be incorporated by GCC somehow? [1] https://github.com/msys2/MINGW-packages/commit/0b2f1460ea3b72aa6cf4f263ace52f61a3470afe