[Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 10 17:29:00 GMT 2010
------- Comment #18 from paolo dot carlini at oracle dot com 2010-09-10 17:29 -------
I'm almost ready for the patch, please be patient ;) If look at the standard,
it says that the last step of seekoff is *always* as if calling fseek(..., off
* width, ...). If look at the current code, we have the concept of
__computed_off and, in many cases we end up calling the equivalent of fseek
with something != off * width. I'm changing that to (0, cur) for the case you
care about, but not changing anything else otherwise.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628
More information about the Gcc-bugs
mailing list