[REG2.064] Issue 13152 - Compiler high cpu usage and never ends

https://issues.dlang.org/show_bug.cgi?id=13152

Partially revert "Merge pull request #2448 from hpohl/10752"