Bug 4479 – Module Foo is in multiple files Foo

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-07-17T10:04:00Z
Last change time
2013-03-27T05:16:25Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
dhasenan

Comments

Comment #0 by dhasenan — 2010-07-17T10:04:20Z
Hideously stupid error message when you have a module name that doesn't match its filename. Simple cases are omitted, but if you have any reasonably large project and change a module declaration from, say, "module core.Args;" to "module core.args;", you get this complaint.
Comment #1 by bearophile_hugs — 2010-07-17T10:10:13Z
See also bug 3972
Comment #2 by andrej.mitrovich — 2012-12-19T03:23:30Z
Comment #3 by andrej.mitrovich — 2012-12-20T15:19:33Z
*** Issue 3972 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2013-03-18T03:47:42Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/db82a6ab5b27aaf1561cf8f03a5c9dc395ee4288 Fixes Issue 4479 - Better error message when a module with a name different from its file name is imported via its file name. https://github.com/D-Programming-Language/dmd/commit/c7b247c63820d2360de464ddc79f0b9e929a868c Merge pull request #1389 from AndrejMitrovic/Fix4479 Issue 4479 - Better error message with module conflicts
Comment #5 by k.hara.pg — 2013-03-27T05:16:25Z
Fixed in D2, and D1 is already obsoleted.