This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53984] iostream operation throwing exception when exceptions not enabled
- From: "gccbz.10.petechap at spamgourmet dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2012 17:00:10 +0000
- Subject: [Bug libstdc++/53984] iostream operation throwing exception when exceptions not enabled
- Auto-submitted: auto-generated
- References: <bug-53984-4@http.gcc.gnu.org/bugzilla/>
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;
}
-------------------