[Issue 8404] New: Importing the enclosing package of a module will crash dmd instead of generating errors.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 21 12:13:17 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8404
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
AssignedTo: nobody at puremagic.com
ReportedBy: overkill9999 at gmail.com
--- Comment #0 from Andrew G. Crowell <overkill9999 at gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list