[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 15:01:00 GMT 2010



------- Comment #9 from paolo dot carlini at oracle dot com  2010-09-10 15:00 -------
Ok. I don't think we should change the code to deal such specially with off ==
0, if we are going to change it we should decouple the return value from what
the underlying seek returns, and always call fseek(..., width * off, ...) as
the standard mandates. Then dealing with off == 0 becomes simple.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628



More information about the Gcc-bugs mailing list