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

--- Comment #7 from [email protected] ---
(In reply to Steven Schveighoffer from comment #6)
> It's perfectly memory safe to look at/use
> your own stack frame without initialization, as long as data doesn't contain
> a reference.

It still has undefined behavior, and `@safe` is supposed to rule out undefined
behavior. So, according to the spec, `@safe` should prevent the code from
compiling.

This is all about `@safe` and has nothing to do with `pure`, though. I've filed
a new issue: issue 18016.

--

Reply via email to