D-Programming-Language/dmd — pull request #864 by donc (2012-04-03 19:54:46+00:00)
Title: Fix issue 7786 dmd crashes with invalid module name

Generate a nice error message in this case, too.
Typical error message is:

src/a.d: Error: module src.a package name 'src' in file src/a.d conflicts with usage as a module name in file src/b.d

This pull request is an alternative to
https://github.com/D-Programming-Language/dmd/pull/861
They are incompatible with each other - only one should be merged