Segfault with DMD optimization switch

Walter Bright newshound2 at digitalmars.com
Tue Jan 22 23:50:25 PST 2013


On 1/22/2013 11:43 PM, Jacob Carlborg wrote:
> I would say that if using the -O flag the code behaves differently from without
> using the flag it's always a bug.
>
> The -O flag should never change the semantic meaning of the code. It should only
> make it faster.

If your program has undefined behavior in it, the -O flag can definitely cause 
that behavior to change.



More information about the Digitalmars-d mailing list