[Issue 14027] New: segmentation fault in dmd in some circular import situation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jan 22 03:04:50 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14027

          Issue ID: 14027
           Summary: segmentation fault in dmd in some circular import
                    situation
           Product: D
           Version: unspecified
          Hardware: x86
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: kanael at weka.io

Created attachment 1471
  --> https://issues.dlang.org/attachment.cgi?id=1471&action=edit
needed modules for recreating the bug

When compiling the attached files with the following command line, dmd crashes
with segfault. Note that the order of the modules in the command line matters.

Command line:
dmd module_a.d module_b.d

Compiling with -v outputs this:
binary    dmd
version   v2.066.1
config    /etc/dmd.conf
parse     module_a
parse     module_b
importall module_a
import    object    (/usr/include/dmd/druntime/import/object.di)
importall module_b
semantic  module_a
zsh: segmentation fault  dmd -v module_a.d module_b.d

--


More information about the Digitalmars-d-bugs mailing list