https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106103
--- Comment #1 from Ivan <ivanka2012 at gmail dot com> --- Created attachment 53225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53225&action=edit Single file and smaller version of the original testcase To compile this, do: x86_64-w64-mingw32-g++ -r -flto -Os -std=gnu++14 -o /dev/null full.ii -lkernel32