[Issue 813] regression: optimizer & scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 2 01:31:35 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=813
bugzilla at digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from bugzilla at digitalmars.com 2007-02-02 03:31 -------
The problem here is that 2.2 is not representable exactly. Constant folding
happens in different ways depending on if the optimizer is run or not,
resulting in slightly different answers due to roundoff error. Generally
speaking, an algorithm that depends on this is always going to have trouble.
To make the example work, use a constant that is exactly representable, like
1.25 and 2.25.
Not a compiler bug.
--
More information about the Digitalmars-d-bugs
mailing list