D-Programming-Language/dmd — pull request #1028 by 9rnsr (2012-06-28 02:39:19+00:00)
Title: Issue 7437,7980,8053 - Partial fix for stack overflow with recursive alias this

Issue 7437 - DMD enters infinite loop during overload resolution
Issue 7980 - Stack overflow / recursive expansion with alias this
Issue 8053 - Recursive alias this causes infinite loop

Compiler should detect recursive alias this dependencies and avoid stack overflow / infinite loop.

This pull request is not complete (there is still problems around CastExp and castTo), but able to detect many cases.