This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35523] New: Wrong result for constant float expression
- From: "martin dot apel at simpack dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2008 10:36:55 -0000
- Subject: [Bug c/35523] New: Wrong result for constant float expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following expression yields a wrong result, when compiled with gcc 4.3.0
sin(cos(tan(M_PI/2.0)))
The build system is a 64 bit Redhat 5 enterprise Linux machine (kernel 2.6.18)
with a quad-core Q6600 Intel Core 2 processor.
Configure options for gcc are:
onfigured with: ../configure --prefix=/home/home_dev/apel/tools/linux64
--with-gmp=/home/home_dev/apel/tools/linux64
--with-mpfr=/home/home_dev/apel/tools/linux64 --program-suffix=-4.3
--with-gnu-as --with-gnu-ld --with-arch=core2
Command line:
gcc-4.3 -o test test.c
The preprocessed source file is attached.
--
Summary: Wrong result for constant float expression
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin dot apel at simpack dot de
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35523