2003-11-13 Petur Runolfsson <peturr02@ru.is>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)
commit3c39060dfff2734f1c9647d28a89c35051910e27
tree987089f2712ac37da35236a2d219760bdafc2b62
parent4158f73b3bf75146c089f8083ff314cd48028ee8
2003-11-13  Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/12594
* include/bits/ostream.tcc
(basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
basic_ostream::operator<<(ios_base& (*)(ios_base&))):
Implement the resolution of DR 60 (TC): These are not formatted
output functions so don't construct sentry objects and don't
catch exceptions.
(basic_ostream::put, basic_ostream::write): Implement the
resolution of DR 63 (TC) by catching exceptions and setting
badbit.
(basic_ostream::flush): Implement the resolution of DR 60 (TC):
This is not an unformatted output function so don't construct
a sentry object.
* testsuite/testsuite_io.h (sync_streambuf): Define.
* testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
* testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
* testsuite/27_io/basic_ostream/put/char/1.cc: New test.
* testsuite/27_io/basic_ostream/write/char/1.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73551 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ostream.tcc
libstdc++-v3/testsuite/27_io/basic_ostream/flush/char/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/5.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/put/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/write/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_io.h