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 18:39:27 -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 18:39 -------
This more simplifed version of your last testcase also catch -O2 problem:
#include<cassert>
typedef int __attribute__((__mode__(__DI__))) off_t;
static long long min() throw() { return -9223372036854775807LL - 1; }
static long long max() throw() { return 9223372036854775807LL; }
void
seekoff(off_t __off)
{
if (__off > max() || __off < min())
assert(false);
}
int main() {
seekoff(10);
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060