This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/86138] [7/8 Regression] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jun 2018 23:40:57 +0000
- Subject: [Bug libstdc++/86138] [7/8 Regression] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called
- Auto-submitted: auto-generated
- References: <bug-86138-4@http.gcc.gnu.org/bugzilla/>
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)