Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 19, 2006 [Issue 258] New: Undefined identifier error for circular import | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=258 Summary: Undefined identifier error for circular import Product: D Version: 0.163 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: smjg@iname.com ----- core.d ----- public import application, windowbase; ----- application.d ----- import core; WindowBase mainWindow() { return null; } ----- windowbase.d ----- import core; class WindowBase {} ---------- D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c core.d application.d(3): identifier 'WindowBase' is not defined application.d(3): WindowBase is used as a type D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c windowbase.d application.d(3): identifier 'WindowBase' is not defined application.d(3): WindowBase is used as a type D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c application.d ---------- It doesn't matter whether the imports in application.d and windowbase.d are private or public. If the imports in core.d are swapped, all files compile without error. -- |
September 14, 2006 Re: [Issue 258] New: Undefined identifier error for circular import | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-07-19: > http://d.puremagic.com/issues/show_bug.cgi?id=258 > ----- core.d ----- > public import application, windowbase; > ----- application.d ----- > import core; > > WindowBase mainWindow() { > return null; > } > ----- windowbase.d ----- > import core; > > class WindowBase {} > ---------- > D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c core.d > application.d(3): identifier 'WindowBase' is not defined > application.d(3): WindowBase is used as a type > > D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c windowbase.d > application.d(3): identifier 'WindowBase' is not defined > application.d(3): WindowBase is used as a type > > D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c application.d > ---------- > > It doesn't matter whether the imports in application.d and windowbase.d are private or public. If the imports in core.d are swapped, all files compile without error. Added to DStress as http://dstress.kuehne.cn/compile/i/import_17_A.d http://dstress.kuehne.cn/compile/i/import_17_B.d http://dstress.kuehne.cn/compile/i/import_17_C.d http://dstress.kuehne.cn/compile/i/import_17_D.d http://dstress.kuehne.cn/compile/i/import_17_E.d http://dstress.kuehne.cn/compile/i/import_17_F.d Thomas |
September 18, 2009 [Issue 258] Undefined identifier error for circular import | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=258 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |r.sagitario@gmx.de --- Comment #2 from Rainer Schuetze <r.sagitario@gmx.de> 2009-09-18 00:43:41 PDT --- The patch for issue 3301 also fixes this issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 13, 2009 [Issue 258] Undefined identifier error for circular import | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=258 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2009-10-13 13:43:27 PDT --- Fixed dmd 1.049 and 2.034 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation