https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
--- Comment #15 from Boris Kolpackov <boris at kolpackov dot net> --- > And I still think using exceptions in iostreams is dumb in the first place. I am interested to hear what is your recommendation to do instead, call good() after every IO operation? In fact, I think that with inheritance from system_error iostream exceptions finally got (barely) usable. But because of this bug (which is now pervasive) we will probably have to scrap the use of exceptions. So I am genuinely interested to hear about the alternatives/recommendations.