reassign 693173 gcc thanks Hi Ben,
On Tue, Nov 13, 2012 at 11:33:01PM +0000, Ben Golightly wrote: > The following three line C programme generates erroneous output when > compiled with i586-mingw32msvc-gcc -std=c99 > > #include <assert.h> > float getfloat() { return 12345.6789f; } > int main(void) { assert(12345.6789f == getfloat()); } > > When running the generated binary, the assertion is always triggered. > > Steps to reproduce: > > $ gcc float.c -o float-linux > $ i586-mingw32msvc-gcc float.c -o float > $ i586-mingw32msvc-gcc float.c -o float-c99 -std=c99 > > $ ./float-linux // works > $ wine ./float // works > $ wine ./float-c99 // outputs "Assertion failed!" The following causes the assertion too, using gcc 4.7.2: % gcc -std=c99 float.c -o float-linux-c99 % ./float-linux-c99 float-linux-c99: float.c:3: main: Assertion `12345.6789f == getfloat()' failed. It seems this bug is not specific to gcc-mingw32, but is either really a bug in gcc or expected behaviour in C99 (I don't know which). Incidentally, since you're running unstable, you can use the i686-w64-mingw32 triplet instead of i586-mingw32msvc; the latter will be going away at some point... Regards, Stephen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org