D-Programming-Language/dmd — pull request #1854 by ibuclaw (2013-04-06 18:02:17+00:00)
Title: Check declaration initializer expressions for nested refs.

Partially addresses http://d.puremagic.com/issues/show_bug.cgi?id=8957

At least, in code generated by GDC, it correctly pushes the var into the closureVars array which is then put into a stack frame. However, this stack frame is stomped on in the test in issue8957.