[Issue 7122] New: [module] compiler fails to handle import of renamed module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 16 21:19:18 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7122
Summary: [module] compiler fails to handle import of renamed
module
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2011-12-16 21:19:16 PST ---
---- a0.d ----
module foo;
---- a1.d ----
module a1;
import a0;
--------------
dmd -lib a0.d a1.d
--------------
a1.d(2): Error: module foo from file a0.d conflicts with another module foo
from file a0.d
--------------
The compiler should detect this import as an already known module.
This is important when splitting a module into declaration and
definition when the defining file should be located in a path
that doesn't match the module name.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list