https://issues.dlang.org/show_bug.cgi?id=24754
--- Comment #13 from Nick Treleaven <[email protected]> --- (In reply to Nick Treleaven from comment #3) > @safe > int* foobar() > { > int* f; > foreach(ref e; foo) > f = &e; // escaping address of foo[0] > return f; > } BTW with dmd git master and -dip1000, the static array escape is now caught: Error: scope variable `f` may not be returned --
