[Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer
potswa at mac dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 10 19:26:00 GMT 2010
------- Comment #25 from potswa at mac dot com 2010-09-10 19:26 -------
Created an attachment (id=21769)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21769&action=view)
alternative approach. untested
I hope this compiles ;v) . But it seems to "color within the lines."
Why does your patch call setp/setg to (re?)invalidate the opposite area? And
then declares it is neither reading nor writing? Also, -1 return from _M_seek
is not handled in seekoff.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628
More information about the Gcc-bugs
mailing list