www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14424] New: dmd crashes with __traits(getUnitTests)


          Issue ID: 14424
           Summary: dmd crashes with __traits(getUnitTests)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

To reproduce (I tried this under /tmp and it didn't work, but under
~/coding/d/crash it did):


    void main() {
        import tests.pass.crash;
        __traits(getUnitTests, tests.pass.crash);


    module tests.pass.crash;
    unittest { }

Run `dmd -v -c -unittest example/example_crash.d`:

binary    dmd
version   v2.067
config    /etc/dmd.conf
parse     example_crash
importall example_crash
import    object        (/usr/include/dlang/dmd/object.di)
semantic  example_crash
entry     main          example/example_crash.d
semantic2 example_crash
semantic3 example_crash
import    tests.pass.crash      (tests/pass/crash.d)
zsh: segmentation fault (core dumped)  dmd -v -c -unittest

Apr 07 2015