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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 9 22:21:24 UTC 2021


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

--- Comment #4 from Teodor Dutu <teodor.dutu at gmail.com> ---
(In reply to Imperatorn from comment #3)
> If you make size_t i static the behaviour is correct

Yes, this would fix the issue, but it would be a hack rather than a solution.
The bug would still persist in DMD's backend.

--


More information about the Digitalmars-d-bugs mailing list