This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26181] istream::operator>>(streambuf*) fails to set eofbit
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2006 17:24:57 -0000
- Subject: [Bug libstdc++/26181] istream::operator>>(streambuf*) fails to set eofbit
- References: <bug-26181-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pcarlini at suse dot de 2006-02-09 17:24 -------
Martin, I have a patch in the making which is supposed to fix the problem.
However, with that patch applied, your testcase still fails the third
assertion, that is 'assert (-1 == ifs.tellg ());' at line 15, because tellg
returns the length of the file, not -1. By the way, Dinkum as bundled together
with ICC does the same.
I will look into that, as soon as I finish the first part of the work, but I
wonder if you could possibly also investigate a bit? Maybe we are diverging in
the implementation (not implementation) of some DRs? Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26181