D-Programming-Language/dmd — pull request #1272 by 9rnsr (2012-11-09 10:16:47+00:00)
Title: Issue 8526 & 6141 - DMD 2.060 regression: anonymous delegate call in foreach loop

http://d.puremagic.com/issues/show_bug.cgi?id=8526

This regression has occured from the commit:
https://github.com/D-Programming-Language/dmd/commit/38a0a5141a3455395e8b9571a57bf85ed698c6b3

But the root cause is a bug 6141.
http://d.puremagic.com/issues/show_bug.cgi?id=6141

When an internal ref variable is marked as closure var, the glue layer had generated incorrect code for that.