This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/52169] the ifstream readsome() method does not signal any bit on eof.


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]