This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19060] fstream.tellp() result not changed after some output
- From: "wanderer at rsu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2004 17:58:03 -0000
- Subject: [Bug libstdc++/19060] fstream.tellp() result not changed after some output
- References: <20041217182932.19060.wanderer@rsu.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wanderer at rsu dot ru 2004-12-31 17:58 -------
I extract problematic compiled (with -O2) function:
---8X-----------------------------
#include <bits/basic_file.h>
#include <fcntl.h>
#include <limits> // For <off_t>::max() and min() and <streamsize>::max()
namespace std
{
streamoff
__basic_file<char>::seekoff(streamoff __off, ios_base::seekdir __way)
{
if (__off > numeric_limits<off_t>::max()
|| __off < numeric_limits<off_t>::min())
return -1L;
return lseek(this->fd(), __off, __way);
}
} // namespace std
---X8-----------------------------
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060