PR libstdc++/53984 handle exceptions in basic_istream::sentry
commitc2830789baaa2c6fd41adcc2c02a757ab59c843c
authorJonathan Wakely <jwakely@redhat.com>
Tue, 25 Jul 2017 20:36:06 +0000 (25 21:36 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 25 Jul 2017 20:36:06 +0000 (25 21:36 +0100)
tree3c31212ec06206dca624076021ca38ab2d22dbb5
parenta74bc411bce0cdc1801574e5d2b4fa3fb143b0ee
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.

From-SVN: r250545
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_ios.h
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/include/std/istream
libstdc++-v3/testsuite/27_io/basic_fstream/53984.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/53984.cc [new file with mode: 0644]