Using -O with DMD seems to produce non-random values.

Michael via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 19 10:07:27 PDT 2016


On Thursday, 19 May 2016 at 15:49:17 UTC, ag0aep6g wrote:
> On 05/19/2016 05:09 PM, Michael wrote:
>> Any idea what causes this to occur when optimising? I wanted 
>> to try and
>> speed up a simulation I'm running but it just produces too many
>> unexpected consequences.
>
> I suspect that you're seeing issue 16027 [1], a bad bug in 
> 2.071.0. The upcoming 2.071.1 point release should have it 
> fixed.
>
>
> [1] https://issues.dlang.org/show_bug.cgi?id=16027

Yeah that's what I was thinking but I don't know much about the 
optimisation process so I wanted to mention it anyway.


More information about the Digitalmars-d-learn mailing list