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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jul 2017 20:36:38 +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/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53984
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jul 25 20:36:06 2017
New Revision: 250545
URL: https://gcc.gnu.org/viewcvs?rev=250545&root=gcc&view=rev
Log:
PR libstdc++/53984 handle exceptions in basic_istream::sentry
PR libstdc++/53984
* include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
* include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
during construction.
* include/std/istream: Adjust comments for formatted input functions
and unformatted input functions.
* testsuite/27_io/basic_fstream/53984.cc: New.
* testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/basic_fstream/53984.cc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/53984.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/basic_ios.h
trunk/libstdc++-v3/include/bits/istream.tcc
trunk/libstdc++-v3/include/std/istream