D-Programming-Language/dmd — pull request #947 by donc (2012-05-14 11:25:14+00:00)
Title:  7478 stack overflow compiling with -deps -release -inline -noboundscheck

Truly awful heisenbug. Have to make sure semantic3 is run *before* generating the deps file, otherwise
ImportStatement::semantic() writes to memory which has already been freed.

This particular test case is D2-only, because it only happens with imports from inside a function. But the code is also wrong in D1, and there are probably cases where it happens with D1 as well.

Thank you valgrind!