D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2059 - Horrible error message
Summary: Horrible error message
Status: RESOLVED DUPLICATE of issue 3972
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2008-04-29 19:48 UTC by Jason House
Modified: 2014-02-24 15:33 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jason House 2008-04-29 19:48:34 UTC
file(line): module XXX is in multiple defined

I got this message when importing a file that lacked a module declaration at the top.  Please make the error message more readable.
Comment 1 Justin C Calvarese 2008-05-01 08:45:33 UTC
I've seen this error before myself, and I never found it very helpful (I don't remember exactly what the code looked like, though). 

We should probably include a short example of what code produces this message. I'm guessing it's something like this:

// file 1: pack/module1.d
import pack.module2;

//file 2: pack/module2.d
import pack.module1;

(from http://www.digitalmars.com/d/archives/digitalmars/D/learn/Module_is_in_multiple_defined_7756.html)

Another related thread: http://www.digitalmars.com/d/archives/digitalmars/D/learn/static_import_is_in_multiple_defined_11474.html

Also, it might be good to provide a suggestion for what the error message should be (if it actually should be an error), but I don't really understand what the message should be.
Comment 2 Walter Bright 2010-03-28 17:49:55 UTC

*** This issue has been marked as a duplicate of issue 3972 ***