https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138
--- Comment #23 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Christian Franke from comment #18) > With patch from r261873, crash on -std=c++17 does no longer occur with > testcase from comment #3. Same for a wchar_t version of the testcase. > According to objdump -p, executable now imports _S_empty_rep_storage[] from > cygstdc++-6.dll. > > No new regressions with -std=c++14, -static, -D_GLIBCXX_USE_CXX11_ABI. What if you test with -D_GLIBCXX_ASSERTIONS ? (I expect you'll get a crash for either c++14 or c++17)