D-Programming-Language/dmd — pull request #1235 by donc (2012-10-30 07:45:04+00:00)
Title: CTFE 'ref' regression 8498 + bugs 7658 and 8539

Regression 8498 modifying foreach range iterator fails in CTFE
Also fixes bug 7658: assignment to ref in foreach.
Also fixes bug 8539: nested functions, ref parameter, -inline.

This was caused by ignoring assignment to ref variables.
(These guys can only be created by the inliner, or by lowering,
such as happens in foreach).

The three bugs aren't really duplicates, but the same patch fixes them all.