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

2006-07-27 Thread pinskia at gcc dot gnu dot org
--- 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 ei

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

2006-07-27 Thread emalloy at andrew dot cmu dot edu
--- Comment #2 from emalloy at andrew dot cmu dot edu 2006-07-27 20:09 --- Created an attachment (id=11960) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11960&action=view) Third Party RNG Header -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28517

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

2006-07-27 Thread emalloy at andrew dot cmu dot edu
--- Comment #1 from emalloy at andrew dot cmu dot edu 2006-07-27 20:09 --- Created an attachment (id=11959) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11959&action=view) Main sample code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28517