Bug 1592 – dmd fail to resolve class symbol when i put files in a package

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-10-18T00:17:00Z
Last change time
2014-02-24T15:33:16Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
davidl

Attachments

IDFilenameSummaryContent-TypeSize
196abc.zipbug files application/zip629

Comments

Comment #0 by davidl — 2007-10-18T00:17:05Z
extract the files to a directory in folder abc, and compile it with the command dmd -c abc\mod.d abc\sym.d(11): Error: identifier 'pack' is not defined abc\sym.d(11): Error: pack is used as a type when these 3 files are not in folder abc and change their module declaration , and import , everything goes fine.
Comment #1 by davidl — 2007-10-18T00:19:39Z
Created attachment 196 bug files extract it, it would expend three files in a folder named 'abc'
Comment #2 by smjg — 2007-11-08T14:30:36Z
This seems to be a circular import problem. If I remove the unnecessary imports, all files compile without error (DMD 1.023, Windows).
Comment #3 by r.sagitario — 2009-09-18T00:45:36Z
The patch for issue 3301 also fixes this issue.
Comment #4 by bugzilla — 2009-10-13T13:44:08Z
Fixed dmd 1.049 and 2.034