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