digitalmars.D.bugs - [Issue 290] New: "U" shaped import name conflicts when using Fully Qualified names
- d-bugmail puremagic.com (39/39) Aug 16 2006 http://d.puremagic.com/issues/show_bug.cgi?id=290
- d-bugmail puremagic.com (6/6) Aug 16 2006 http://d.puremagic.com/issues/show_bug.cgi?id=290
- Bruno Medeiros (5/5) Aug 16 2006 Note to self: pay attention when posting bugs with multiple bugzilla
- d-bugmail puremagic.com (4/4) Oct 16 2006 http://d.puremagic.com/issues/show_bug.cgi?id=290
- d-bugmail puremagic.com (9/9) Oct 16 2006 http://d.puremagic.com/issues/show_bug.cgi?id=290
http://d.puremagic.com/issues/show_bug.cgi?id=290 Summary: "U" shaped import name conflicts when using Fully Qualified names Product: D Version: 0.164 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: brunodomedeiros+bugz gmail.com BugsThisDependsOn: 209 In a "U" shaped structure of imports, name conflicts occur on the bottom module (main) when accessing top module entities (pack.tier2*) with a fully qualified name, as both tier1 modules think they have a different pack. Code: ---- main.d ---- import tier1_A; import tier1_B; alias pack DUMMY; auto x1 = &pack.tier2_A.foonumA; auto x2 = &pack.tier2_B.foonumB; // any the above gets the error: // import tier1_A.pack conflicts with tier1_B.pack at tier1_B.d(3) ---- tier1_A.d ---- module tier1_A; public import pack.tier2_A; ---- tier1_B.d ---- module tier1_B; public import pack.tier2_B; ---- pack/tier2_A.d ---- module pack.tier2_A; int foonumA; ---- pack/tier2_B.d ---- module pack.tier2_B; int foonumB; --
Aug 16 2006
http://d.puremagic.com/issues/show_bug.cgi?id=290 Created an attachment (id=22) --> (http://d.puremagic.com/issues/attachment.cgi?id=22&action=view) Zipped testcase --
Aug 16 2006
Note to self: pay attention when posting bugs with multiple bugzilla windows opened, it messes the dependency information... :P -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Aug 16 2006
http://d.puremagic.com/issues/show_bug.cgi?id=290 brunodomedeiros+bugz gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED forgot to change to FIXED --
Oct 16 2006