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

ag0ae...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |ag0ae...@gmail.com

--- Comment #3 from ag0ae...@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.

--

Reply via email to