--- /usr/include/c++/4.2/bits/basic_ios.h 2014-07-09 12:47:43.000000000 +0000 +++ basic_ios.h 2014-07-14 12:13:56.685841000 +0000 @@ -152,8 +152,10 @@ // 27.6.1.2.1 Common requirements. // Turn this on without causing an ios::failure to be thrown. _M_streambuf_state |= __state; +#ifdef _EXCEPTIONS if (this->exceptions() & __state) __throw_exception_again; +#endif } /**