Segfault with DMD optimization switch

Walter Bright newshound2 at digitalmars.com
Wed Jan 23 12:03:05 PST 2013


On 1/23/2013 8:06 AM, Jacob Carlborg wrote:
> On 2013-01-23 08:50, Walter Bright wrote:
>
>> If your program has undefined behavior in it, the -O flag can definitely
>> cause that behavior to change.
>
> Yes, I guess that is to be expected. I'm mostly talking about correct code here.

-O can especially expose code bugs like referencing an out-of-scope stack frame.



More information about the Digitalmars-d mailing list