This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28517] Incorrect floating point calculations when done in class constructor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2006 20:30:04 -0000
- Subject: [Bug c++/28517] Incorrect floating point calculations when done in class constructor
- References: <bug-28517-13018@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 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