[Issue 18560] find on infinite ranges is broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 6 12:35:08 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18560
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |ag0aep6g at gmail.com
--- Comment #3 from ag0aep6g at gmail.com ---
That makes it a codegen bug. foo isn't pure so it must be executed for the side
effects. The compiler cannot skip the execution just because the result isn't
really used.
--
More information about the Digitalmars-d-bugs
mailing list