fix Issue 11086 - dmd segfault
Merge pull request #2583 from 9rnsr/fix11086

[REG2.062] Issue 11086 - dmd segfault