Summary: Importing the enclosing package of a module will crash
                    dmd instead of generating errors.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrew G. Crowell <> 2012-07-21 
12:13:16 PDT ---
Make a file called "mod.d" inside of folder "pkg" with these contents:

module pkg.mod;
import pkg;

When running this under DMD 2.059 on Windows 7 (and possibly other platforms, I
haven't checked):

dmd mod.d

This crashes the compiler, instead of giving error output.

I don't know exactly where it is happening in the code, because I couldn't
retrieve the debug symbols when I launched VS2010's debugger, but the
disassembly tells me that some piece of code is trying to indirect [ecx] when
ecx=0x00000000 (a null pointer dereference).

-- Andrew G. Crowell

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to