[Issue 1685] Array index is evaluated twice

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 17 11:06:31 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1685


baryluk at smp.if.uj.edu.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |baryluk at smp.if.uj.edu.pl
           Severity|normal                      |critical




------- Comment #3 from baryluk at smp.if.uj.edu.pl  2008-12-17 13:06 -------
f[i++] += 0.1; example is really critical for "float[] f".  Please add this to
DStress.

I have many codes in template versions (both for float and double), but most
literals and functions returns double which then need implicit cast for floats.
This bug makes version for floats very very broken code. I have no idea in what
places this bug was silently corrupting my data.


-- 



More information about the Digitalmars-d-bugs mailing list