digitalmars.D.bugs - [Issue 8404] New: Importing the enclosing package of a module will crash dmd instead of generating errors.
- d-bugmail puremagic.com (29/29) Jul 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8404
- d-bugmail puremagic.com (13/13) Jul 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8404
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 puremagic.com ReportedBy: overkill9999 gmail.com --- Comment #0 from Andrew G. Crowell <overkill9999 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: -------
Jul 21 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8404 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jmdavisProg gmx.com Resolution| |DUPLICATE --- Comment #1 from Jonathan M Davis <jmdavisProg gmx.com> 2012-07-21 12:32:38 PDT --- Already fixed on github. *** This issue has been marked as a duplicate of issue 8089 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 21 2012