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++/28517] Incorrect floating point calculations when done in class constructor



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


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