re PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)
authorPaolo Carlini <pcarlini@unitus.it>
Wed, 12 Feb 2003 19:39:19 +0000 (20:39 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 12 Feb 2003 19:39:19 +0000 (19:39 +0000)
commitff5d863fc262628cff60780e39c077fc897310d7
tree189943f8946e67b013c29727d5024f7450b66902
parent55ae46b15fcf6a31291fd793f8819207a70e0bbb
re PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)

2003-02-12  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9563
* include/bits/ostream.tcc (sentry::sentry): Check
the state of the stream after the preparation.
* testsuite/27_io/ostream_sentry.cc (test02): Add.

From-SVN: r62779
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ostream.tcc
libstdc++-v3/testsuite/27_io/ostream_sentry.cc