This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11544] New: wifstream conversion errors result in wrong rdstate()
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2003 09:43:14 -0000
- Subject: [Bug libstdc++/11544] New: wifstream conversion errors result in wrong rdstate()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11544
Summary: wifstream conversion errors result in wrong rdstate()
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peturr02 at ru dot is
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
When input using wifstream fails because the file contains an invalid
byte sequence, eofbit, but not badbit, is set in rdstate(). The
description of the rdstate() flags indicates badbit should be set on
conversion errors, but eofbit should only be set if end of file has
been reached.