Bug 1246 – "module in multiple packages" error needs fixing

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-05-24T21:19:00Z
Last change time
2014-02-16T15:23:47Z
Keywords
diagnostic
Assigned to
nobody
Creator
wbaxter

Comments

Comment #0 by wbaxter — 2007-05-24T21:19:09Z
I find myself yet again facing the dreaded "module blah is in multiple packages blah" compiler error. It would be a huge help in fixing these errors if the compiler actually said *which* packages it was talking about. Right now I'm staring at such an error, and I don't see any other module with the same name. I have no idea where to look for the conflicting module. Must be something somewhere on my include path I guess. Or just a mistaken module declaration somewhere from a copy-paste error. Whatever it is, it would be a lot easier to find if the compiler told me what it thought was conflicting.
Comment #1 by wbaxter — 2007-05-24T21:30:43Z
(In reply to comment #0) > I find myself yet again facing the dreaded "module blah is in multiple packages > blah" compiler error. It would be a huge help in fixing these errors if the > compiler actually said *which* packages it was talking about. Even worse, in this case the problem turned out to be that I was doing import Point3D; when the module in file Point3d.d had module Point3d; So the error message "module is in multiple packages" is not even accurate. Since it has to do with files and case, this could be a Windows specific problem.
Comment #2 by clugdbug — 2012-11-21T00:40:53Z
Fixed a few releases ago.