This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r251089 - in /branches/gcc-7-branch/libstdc++-v...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 14 Aug 2017 12:14:02 -0000
- Subject: r251089 - in /branches/gcc-7-branch/libstdc++-v...
Author: redi
Date: Mon Aug 14 12:14:01 2017
New Revision: 251089
URL: https://gcc.gnu.org/viewcvs?rev=251089&root=gcc&view=rev
Log:
PR libstdc++/53984 handle exceptions in basic_istream::sentry
Backport from mainline
2017-07-25 Jonathan Wakely <jwakely@redhat.com>
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:
branches/gcc-7-branch/libstdc++-v3/testsuite/27_io/basic_fstream/53984.cc
branches/gcc-7-branch/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/53984.cc
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/bits/basic_ios.h
branches/gcc-7-branch/libstdc++-v3/include/bits/istream.tcc
branches/gcc-7-branch/libstdc++-v3/include/std/istream