D-Programming-Language/dmd — pull request #1261 by 9rnsr (2012-11-06 16:08:29+00:00)
Title: 3rd fix of Issue 4090 - No foreach type inference with const, ref etc modifiers

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

I hope this would be the final fix.