[Issue 22372] Loop index incorrectly optimised out for -release -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 10 08:58:45 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22372

--- Comment #7 from Basile-z <b2.temp at gmx.com> ---
by digging further it looks like the problem resides in dmd.backend.gloop
reference counting system. OPInd would be ignored, so when a loop body only
contains an IndexExp and that the IndexExp subscript is the IV (increment value
?), DMD thinks that the IV is not used.

--


More information about the Digitalmars-d-bugs mailing list