[Bug libstdc++/91653] New: ostream::operator<<(streambuf*) should fail the ostream when write output stream error but not

2019-09-03 Thread yhliang86 at hotmail dot com
FIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: yhliang86 at hotmail dot com Target Milestone: --- bits/ostream.tcc operator<<(__streambuf_type* __sbin): if (!__copy_streambufs(

[Bug libstdc++/91653] ostream::operator<<(streambuf*) should fail the ostream when write output stream error but not

2019-09-08 Thread yhliang86 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91653 --- Comment #2 from yinghui --- (In reply to Jonathan Wakely from comment #1) > GCC 4.9.2 has been unsupported for several years. but both the code and the problem still keeps exactly the same. I have seen many c++ code write 'os << is.rdbuf()`

[Bug libstdc++/91653] ostream::operator<<(streambuf*) should fail the ostream when write output stream error but not

2019-09-10 Thread yhliang86 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91653 --- Comment #4 from yinghui --- (In reply to TC from comment #3) > Looks NAD to me. > > http://eel.is/c++draft/ostream.inserters#8.2 doesn't say that we set any bit > in that case. Contrast with http://eel.is/c++draft/ostream.unformatted#3 and >