https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100486
--- Comment #20 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Adding --enable-frame-pointer makes no difference. No change either adding > > --enable-large-address-aware --with-fpmath=sse --disable-sjlj-exceptions > --enable-frame-pointer --disable-libada --enable-libstdcxx > > Another data point: for the test mentioned on Comment 16, if I replace > libstdc++.dll with the same file from gcc 10, the test works. Weird, I don't have any dependency on the DLL for it: $ ldd t.exe ntdll.dll => /Windows/SYSTEM32/ntdll.dll (0x7ffc65560000) ntdll.dll => /Windows/SysWOW64/ntdll.dll (0x770b0000) wow64.dll => /Windows/System32/wow64.dll (0x5d1b0000) wow64win.dll => /Windows/System32/wow64win.dll (0x5d210000) Can you post the output of 'g++ foo.cpp -v' for your C++ testcase? Can you find out what symbol(s) of libstdc++.dll are referenced by your executable?