Thread overview
[Issue 1592] New: dmd fail to resolve class symbol when i put files in a package
Oct 18, 2007
d-bugmail
Oct 18, 2007
d-bugmail
Nov 08, 2007
d-bugmail
Sep 18, 2009
Rainer Schuetze
Oct 13, 2009
Walter Bright
October 18, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1592

           Summary: dmd fail to resolve class symbol when i put files in a
                    package
           Product: D
           Version: 1.022
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: davidl@126.com


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.


-- 

October 18, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1592





------- Comment #1 from davidl@126.com  2007-10-18 00:19 -------
Created an attachment (id=196)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=196&action=view)
bug files

extract it, it would expend three files in a folder named 'abc'


-- 

November 08, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1592


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |rejects-valid




------- Comment #2 from smjg@iname.com  2007-11-08 14:30 -------
This seems to be a circular import problem.  If I remove the unnecessary imports, all files compile without error (DMD 1.023, Windows).


-- 

September 18, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1592


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario@gmx.de


--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> 2009-09-18 00:45:36 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
http://d.puremagic.com/issues/show_bug.cgi?id=1592


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2009-10-13 13:44:08 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: -------