https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125359
--- Comment #6 from Sandro Mani <manisandro at gmail dot com> --- Sorry I typed without thinking. The -c was misplaced, indeed the error is the same: $ i686-w64-mingw32-g++ -std=gnu++20 -Os -MD -MT -c -Wl,--no-demangle repro.cpp -o repro.o /usr/i686-w64-mingw32/bin/ld: /tmp/ccEamhdW.o:repro.cpp:(.text.startup+0xa4): undefined reference to `__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC4EOS4_' collect2: error: ld returned 1 exit status
