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++/19060] fstream.tellp() result not changed after some output


------- 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


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