https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91653
--- Comment #4 from yinghui <yhliang86 at hotmail dot com> --- (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 > http://eel.is/c++draft/ostream.unformatted#5.2 so, seems like this is a bug of the c++ standard? if an i/o function can't report failure on i/o operation failure, it can not be used in any serious code.