[Bug libstdc++/53984] iostream operation throwing exception when exceptions not enabled

gccbz.10.petechap at spamgourmet dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 16 17:00:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53984

--- Comment #1 from Pete Chapman <gccbz.10.petechap at spamgourmet dot com> 2012-07-16 17:00:10 UTC ---
Even simpler:

-------------------
#include <fstream>
int main()
{
        std::ifstream in(".");
        int x;
        if (in)
          in >> x;
}
-------------------



More information about the Gcc-bugs mailing list