D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2338 - wrong error location for wrong import statement
Summary: wrong error location for wrong import statement
Status: RESOLVED DUPLICATE of issue 176
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-09-06 10:40 UTC by Frank Benoit
Modified: 2014-03-01 00:37 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 Frank Benoit 2008-09-06 10:40:04 UTC
==== test.d ======
module test2;

import test2;

import test2.A; // (2) this wrong import can in another file

==== test2.d ======
module test2;
==========


If one of the compiled files has a wrong import like (2) it happens DMD is pointing to a correct import or a simply wrong location:

test2.d(3): module test2 module and package have the same name
Comment 1 Leandro Lucarella 2009-11-13 16:45:32 UTC
It looks like you forgot you already hit the same bug 2 years ago ;)

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