https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66262
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- I'm not convinced this is a duplicate, the test tries to catch a std::system_error not a std::ios::failure. On Fedora 22 using the old ABI the test passes.