This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32448] [3.3 / 3.4 / 4.1 / 4.2 / 4.3 Regression] abs / printf bug



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]