Segfault with DMD optimization switch
Walter Bright
newshound2 at digitalmars.com
Wed Jan 23 16:01:23 PST 2013
On 1/23/2013 2:15 PM, Stephan wrote:
> What would be the prototypic short program that simulates referencing an out of
> scope stack frame? It would be great to see an example that produces a
> deterministic segfault.
Just return a pointer to a local (first passing it through another function in
order to hide what you're doing from the compiler).
btw, bug 8832 is an example of one.
More information about the Digitalmars-d
mailing list