[Bug c++/28517] Incorrect floating point calculations when done in class constructor

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 27 20:30:00 GMT 2006



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-07-27 20:30 -------

  Foo
wrong_values((t1+rng1.RandomDouble(t1,t2)),(t2+rng1.RandomDouble(t1,t2)));

The order of execution of the two function calls (to RandomDouble) in this
statement is unspecified which means GCC can call it in either order.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28517



More information about the Gcc-bugs mailing list