www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10370] New: ICE when loading imports

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10370

           Summary: ICE when loading imports
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



11:35:04 MSD ---
`Package::resolve` returns NULL as the last `pkg` in loop is a module with NULL
`symtab` so `Import::load` calls `lookup` on NULL `dst` and segfaults.

The issue is rather nasty as the compiler fails early without any errors.

Sorry, the testcase is huge and non-opensource. One can email me directly if it
is needed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 16 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10370




11:43:57 MSD ---
Looks like this is only wrong code issue and is triggered on invalid import
like:
---
import p1.p2.m1.x;
---
when there is module `p1.p2.m1`.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 16 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10370


Walter Bright <bugzilla digitalmars.com> changed:

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



15:03:54 PDT ---
11136 has a reduced test case.

*** This issue has been marked as a duplicate of issue 11136 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 01 2013