% cat foo.d // module foo; void main() {} % dmd -X foo.d zsh: segmentation fault dmd -X foo.d % Uncomment the "module" line, and it works fine. Using DMD 2.035.
*** Issue 3435 has been marked as a duplicate of this issue. ***
Fixed DMD1.051 and 2.036.