This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
}
-------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]