www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1592] New: dmd fail to resolve class symbol when i put files in a package

reply d-bugmail puremagic.com writes:
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.


-- 
Oct 17 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1592






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'


-- 
Oct 17 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1592


smjg iname.com changed:

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





This seems to be a circular import problem.  If I remove the unnecessary
imports, all files compile without error (DMD 1.023, Windows).


-- 
Nov 08 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Sep 18 2009
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Oct 13 2009