This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/79820] std::ifstream sets errno to zero
- 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: Mon, 14 Aug 2017 13:30:43 +0000
- Subject: [Bug libstdc++/79820] std::ifstream sets errno to zero
- Auto-submitted: auto-generated
- References: <bug-79820-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79820
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I was wrong, and that code path is used by std::sync_with_stdio(false) when we
reset cin, cout, cerr and clog to use stdio_filebuf stream buffers. So there's
no need for a testcase.