[Bug libstdc++/86138] [7/8 Regression] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 26 23:41:00 GMT 2018


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)


More information about the Gcc-bugs mailing list