This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35523] 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: 11 Mar 2008 07:58:19 -0000
- Subject: [Bug c/35523] Wrong result for constant float expression
- References: <bug-35523-15886@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 4.2, but not
with 4.3. So this is obviously not really a bug, just differing behaviour in
a case, where the behaviour is undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35523