Package: gcc-mingw32
Version: 4.6.3-8+7
Severity: important

Dear Maintainer,

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!"

More information:

$ wine --version
wine-1.4.1

Regards,

Ben <golightly....@googlemail.com>



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-mingw32 depends on:
ii  binutils-mingw-w64-i686  2.22-7+2
ii  g++-mingw-w64-i686       4.6.3-8+7
ii  gcc-mingw-w64-base       4.6.3-8+7
ii  gcc-mingw-w64-i686       4.6.3-8+7
ii  gfortran-mingw-w64-i686  4.6.3-8+7

gcc-mingw32 recommends no packages.

gcc-mingw32 suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to