fix Issue 8664 - Compiler causes stack overflow with recursive typedef and option -g

https://d.puremagic.com/issues/show_bug.cgi?id=8664