--- Comment #10 from martin dot apel at simpack dot de 2008-03-11 07:58
---
You are right, tan(PI/2) is undefined. I had this contained in some sort of
unit test comparing the results of my own formula evaluation code
and the result of the compiler. This gave the same result with gcc
--- Comment #4 from martin dot apel at simpack dot de 2008-03-10 16:33
---
(In reply to comment #3)
> gcc-4.3 -o t t.i
> ./t
> sin(cos(tan(PI/2))) = -0.280611
>
> gcc-4.3 -o t t.i -fno-builtin -lm
> ./t
> sin(cos(tan(PI/2))) = -0.280611
>
> works for me?
&g
--- Comment #2 from martin dot apel at simpack dot de 2008-03-10 10:42
---
Version information for libgmp: 4.2.2, compiled with gcc-4.2.2
Version information for libmpfr: 2.3.1, compiled with gcc-4.2.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35523
--- Comment #1 from martin dot apel at simpack dot de 2008-03-10 10:37
---
Created an attachment (id=15288)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15288&action=view)
Preprocessed source file producing the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35523
.
--
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