[Issue 8089] New: Importing package as module causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 11 23:46:58 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8089

           Summary: Importing package as module causes segfault
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-05-11 23:48:23 PDT ---
I decide that I'd look at the possibility of implementing something along the
lines of DIP 15 or 16 and ran into this little bit of fun. If you have the
modules

prog.d
------
import wasmodule;

void main() {}
------

and

wasmodule/module1.d
-------------------
module wasmodule.module1;
-------------------

you get a segfault. If you change the first import to

import wasmodule.module1;

it's fine. Apparently the compiler can't handle trying to import a package as
if it were module (obviously, it should error out in that case, but segfaulting
is clearly not acceptable).

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


More information about the Digitalmars-d-bugs mailing list