Index: indirect_streambuf.hpp =================================================================== --- indirect_streambuf.hpp (revision 81622) +++ indirect_streambuf.hpp (working copy) @@ -17,6 +17,7 @@ #include #include #include +#include #include // Member template friends. #include #include @@ -314,6 +315,8 @@ sync_impl(); obj().flush(next_); return 0; + } catch (__cxxabiv1::__forced_unwind&) { + __throw_exception_again; } catch (...) { return -1; } } @@ -323,6 +326,8 @@ try { // sync() is no-throw. sync_impl(); return obj().flush(next_); + } catch (__cxxabiv1::__forced_unwind&) { + __throw_exception_again; } catch (...) { return false; } }