This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimizatinon bug?


Hello,

I found a gcc bug.

Please compile an attached file and run.

$ LANG=C gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds3/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20021020 (Debian prerelease)

$ uname -a 
Linux dual-linux 2.4.18 #1 SMP Sat Jun 15 16:18:03 JST 2002 i686 unknown unknown GNU/Linux

$ gcc -O2  gccbug.c

$ ./a.out
a.out: gccbug.c:63: main: Assertion `dy == 3.8' failed.
Aborted.

I'm sorry if you have already known it.
-------
Isao Aburatani <aburatan@nippon-control-system.co.jp>

Attachment: gccbug.c
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]