https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71260
Slawomir Czarko-Wasiutycz <slawomir.czarko at dev dot policat.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|4.9.3 |6.1.0 Summary|Crash in DLL compiled with |Crash in DLL compiled with |-fipa-pure-const and -flto |-fipa-pure-const / |[mingw32] |-fipa-cp-clone and -flto | |[mingw32] --- Comment #2 from Slawomir Czarko-Wasiutycz <slawomir.czarko at dev dot policat.net> --- I was able to reproduce this also with gcc 6.1.0 (package mingw32-gcc-c++-6.1.0-1.fc24.i686 on Fedora) With gcc 6.1.0 the optimization option which is relevant is -fipa-cp-clone instead of -fipa-pure-const