On Friday, October 14, 2016 16:49:44 Nick Sabalausky via Digitalmars-d-learn
> This compiles. Is it supposed to?
> @safe ubyte foo()
> ubyte buf;
> auto slice = buf[0..$];
> // Escaping reference to stack memory, right?
> return slice;
> Or is the escaping reference detection not intended to be 100%? Or
> something else I'm missing?
> Should I file @ bugzilla?
It's a long-standing bug:
But Walter has been working on @safety issues recently (particularly with
regards to stuff like parameters escaping, because of DIP1000), so a fix
should finally be coming.
- Jonathan M Davis