Merge pull request #1680 from WalterBright/fix11392

fix Issue 11392 - dirEntries segfaults
Merge remote-tracking branch 'upstream/2.064' into ldc-merge-2.064