This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50695] double comparison broken after computation
- From: "gpib at rickyrockrat dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Oct 2011 17:40:25 +0000
- Subject: [Bug c/50695] double comparison broken after computation
- Auto-submitted: auto-generated
- References: <bug-50695-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50695
--- Comment #11 from rickyrockrat <gpib at rickyrockrat dot net> 2011-10-12 17:40:25 UTC ---
Richard,
The original issue involved strtof, with -Wall enabled in the Makefile, and
stdlib.h included. That is the case that brought all this up, and that is the
case where it prints Bug!!1.000000E-06. I still don't understand why widening
the result from float to double would cause the problem.
I apologize for my pathetic test cases that not only made me look like an
idiot, but threw confusion into the mix as well. I suppose I shouldn't submit
a bug report while I do 10 other things.
It doesn't seem to me it's resolved, but everyone here seems to think it
invalid, and I've got a work-around that works for me, so I give up.
Thanks.