[Issue 1516] Code generation bug with recursive call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 19 08:15:07 PDT 2007


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


matti.niemenmaa+dbugzilla at iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Comment #6 from matti.niemenmaa+dbugzilla at iki.fi  2007-09-19 10:15 -------
Woops, didn't notice the bit about -O. I would guess that -O realizes that the
foreach loop does absolutely nothing and thus optimizes it away, but I can't be
sure without checking the asm.

Even if it's not that, it's a different issue, since the code here is correctly
failing on a null pointer dereference. If you can reproduce the behaviour of -O
with a loop which actually does something and shouldn't be optimized away, file
another issue for that. Keeping this as INVALID.


-- 



More information about the Digitalmars-d-bugs mailing list