[Bug rtl-optimization/18084] [3.4 only]setfill coupled with inline function: incorrect results on Linux x86
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 20 18:00:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-10-20 18:00 -------
Here's something slightly smaller:
------------------
#include <inttypes.h>
#include <iostream>
#include <iomanip>
uint64_t mask1, mask2;
uint64_t calc() {
return mask1 & mask2;
}
int main()
{
mask1 = 0x00000000FFFFFFFFull;
mask2 = 0x000000000000FFFFull;
uint64_t value = calc();
std::cout << std::setfill('0');
if(value != calc())
abort ();
}
------------------------------
g/x> /home/bangerth/bin/gcc-3.4.3-pre/bin/c++ -O3 x.cc ; ./a.out
Aborted
I'll keep working on reducing this.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18084
More information about the Gcc-bugs
mailing list