[Bug libstdc++/12297] istream::sentry::sentry() handles eof() incorrectly.
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 26 22:46:00 GMT 2003
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-11-26 22:46 -------
Subject: Bug 12297
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bkoz@gcc.gnu.org 2003-11-26 22:45:57
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: istream.tcc
Added files:
libstdc++-v3/testsuite/27_io/basic_istream/sentry/char: 12297.cc
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2110&r2=1.2111
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/istream.tcc.diff?cvsroot=gcc&r1=1.56&r2=1.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12297
More information about the Gcc-bugs
mailing list