https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100461
--- Comment #8 from Daniel Starke <daniel.f.starke at freenet dot de> --- This bug was fixes in mingw-w64. The bug fix is included since versions 8.0.1. See https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/bb03f15f-db70-a511-a10d-396fbd8cf3c1%40126.com/#msg37259429 The bug report here can be closed.