fix Issue 11553 - dmd segfault with recursive template
Merge pull request #2826 from 9rnsr/fix11553

Issue 11553 - dmd segfault with recursive template