https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138
--- Comment #18 from Christian Franke <franke at computer dot org> --- 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.