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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2004 18:20:29 -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 pinskia at gcc dot gnu dot org 2004-12-31 18:20 -------
Hmm, this is the reduced testcase but it was not miscompiled as far as I can see:
typedef int __attribute__((__mode__(__DI__))) __int64_t;
typedef __int64_t int64_t;
typedef int64_t streamoff;
typedef __int64_t __off_t;
typedef __off_t off_t;
static long long min() throw() { return -9223372036854775807LL - 1; }
static long long max() throw() { return 9223372036854775807LL; }
__off_t lseek(int, __off_t, int);
streamoff
seekoff(streamoff __off)
{
if (__off > max() || __off < min())
return -1L;
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060