D-Programming-Language/dmd — pull request #506 by donc (2011-11-11 00:47:48+00:00)
Title: CTFE: Store all variables on a stack. Fixes 6522 + 6919

This is a major refactoring of the way CTFE stores its variables. Instead of storing the value inside the variable, they're now stored in a global stack.
This new way is simpler, far more comprehensible, and fixes some subtle bugs. It also paves the way for major speed improvements.
Fixes:

6522 [CTFE] Problem with opAssign call in foreach(ref)
6919 [CTFE] Cannot get effect to local variable through its pointer