This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52169] the ifstream readsome() method does not signal any bit on eof.
- From: "tom at kera dot name" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 08 Feb 2012 10:45:17 +0000
- Subject: [Bug libstdc++/52169] the ifstream readsome() method does not signal any bit on eof.
- Auto-submitted: auto-generated
- References: <bug-52169-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52169
--- Comment #2 from Tomalak Geret'kal <tom at kera dot name> 2012-02-08 10:45:17 UTC ---
Are you sure it's not just that in_avail is 0? Why should it be -1 here?
i.e. doesn't readsome become a noop when there's nothing to read?