Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.1.2, 4.1.3, 4.1.4
-
None
-
$ uname -a
Linux cyberdyne 2.6.17.8 #9 SMP PREEMPT Wed Nov 22 09:34:35 EST 2006 i686 unknown unknown GNU/Linux$ gcc -v
Using built-in specs.
Target: i486-slackware-linux
Configured with: ../gcc-src/configure -prefix=/opt/compilers/gcc-4.1.2 --enable-shared --enable-threads=posix --enable__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux --enable-languages=c,c++
Thread model: posix
gcc version 4.1.2Built a 15s version of the library.
$ uname -a Linux cyberdyne 2.6.17.8 #9 SMP PREEMPT Wed Nov 22 09:34:35 EST 2006 i686 unknown unknown GNU/Linux $ gcc -v Using built-in specs. Target: i486-slackware-linux Configured with: ../gcc-src/configure - prefix=/opt/compilers/gcc-4.1.2 --enable-shared --enable-threads=posix --enable __cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux --enable-languages=c,c++ Thread model: posix gcc version 4.1.2 Built a 15s version of the library.
-
Incorrect Behavior
Description
The following test case:
$ cat t.cpp
#include <ios>
#include <iostream>
#include <sstream>
int
main ()
{
long long n = 0;
return 0;
}
Produces inconsistent (but consistently wrong) results in different runs:
$ ./t
214748364
9223372036854775807
$ ./t
214748364
214748365089
$ ./t
214748364
9223372036854775807
Liviu