------- Comment #3 from rob1weld at aol dot com 2007-06-21 08:49 ------- GCC printed no warning about disliking a conversion.
I hacked the program in accordance with your suggestion and now it prints: n= 4 QUESTION1=+0.123 QUESTION2=+0.123 Q(n)=+0.000 n= 5 QUESTION1=+0.099 QUESTION3=+0.099 Q(n)=-0.000 n= 5 QUESTION1=+0.099 QUESTION2=+0.099 Q(n)=-0.000 n= 6 QUESTION1=+0.083 QUESTION3=+0.083 Q(n)=-0.000 n= 6 QUESTION1=+0.083 QUESTION2=+0.083 Q(n)=-0.000 n= 7 QUESTION1=+0.071 QUESTION3=+0.071 Q(n)=+0.000 n= 7 QUESTION1=+0.071 QUESTION2=+0.071 Q(n)=+0.000 n= 8 QUESTION1=+0.062 QUESTION3=+0.062 Q(n)=-0.000 Sometimes the answer is _positive_ zero and sometimes the answer is _negative_ zero. -- rob1weld at aol dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32448