Bug 7786 – dmd crashes with invalid module name

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-27T08:30:00Z
Last change time
2012-04-05T10:41:12Z
Keywords
ice, pull
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2012-03-27T08:30:12Z
This codes crashes dmd! ------- src/a.d ------- module src.a; ------- [EOF] ------- ------- src/b.d ------- module src; // Lack of the module name. (only the package name) ------- [EOF] ------- $ dmd src/b.d src/a.d (File order of command line is necessary for reproduction.)
Comment #1 by bearophile_hugs — 2012-03-27T09:44:44Z
See also Issue 7782
Comment #2 by k.hara.pg — 2012-04-03T02:09:26Z
In 2.058: $ dmd src/a.d src/b.d src\b.d: Error: module src from file src\b.d conflicts with package name src c:\d/ $ dmd src/b.d src/a.d src\b.d: Error: module src module and package have the same name This is a regression.
Comment #3 by k.hara.pg — 2012-04-03T02:26:22Z
Comment #4 by github-bugzilla — 2012-04-05T10:10:08Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/49dff5907d282a36e7152b80ac2300ca54d98183 Merge pull request #864 from donc/regression7786 Fix issue 7786 dmd crashes with invalid module name