This is the mail archive of the gcc-prs@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]

Re: c++/7935: floating point test of ">" fails on -O0, not on -O{1,2,3} for certain values double precision float accessed by operator[] in wrapper class (on ix86)


Synopsis: floating point test of ">"  fails on -O0, not on -O{1,2,3} for certain values double precision float accessed by operator[] in wrapper class (on ix86)

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Mon Sep 16 22:26:45 2002
State-Changed-Why:
    Not a bug.  This is the well-known excess precision issue.
    
    The extended precision result of the subtraction is
    
      0.80000000000000001665334536937734811
    
    whereas the result rounded to double precision is
    
      0.80000000000000004

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7935


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