https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99289 --- Comment #1 from cqwrteur <unlvsur at live dot com> --- On windows, it should get emulated with LockFile win32 api to lock files. Or it is trash.