Summary: Importing package as module causes segfault
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Jonathan M Davis <> 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

import wasmodule;

void main() {}


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:
------- You are receiving this mail because: -------

Reply via email to