https://issues.dlang.org/show_bug.cgi?id=18003 --- Comment #1 from hsteoh at quickfur.ath.cx --- P.S. Marking both functions as @safe and compiling with -dip25 and -dip1000 also fails to catch this leak of a reference to a local variable outside f(). --