2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
commitab50a10ec2e897d41d85f4ead7a04caf8d5c1de8
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Nov 2003 22:45:56 +0000 (26 22:45 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Nov 2003 22:45:56 +0000 (26 22:45 +0000)
tree61eeb4755c2a89ce526968f83572aff8eafeb13e
parent1a56510a6b5772240a0ed85a7518db15a15edb8a
2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/12297
* include/bits/istream.tcc
(basic_istream::sentry::sentry): Set failbit and eofbit when eof.
* testsuite/27_io/basic_istream/sentry/char/12297.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73968 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc [new file with mode: 0644]