]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/bits/ostream.tcc
re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)
authorPetur Runolfsson <peturr02@ru.is>
Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)
commit5681c890b67c0f3c3134fb9897293866594cbd5c
tree987089f2712ac37da35236a2d219760bdafc2b62
parent148a82c8ad081d9bc615389c6a167824fdf2e2bf
re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)

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.

From-SVN: r73551
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