www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18382] New: Crash with -unittest -test

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

          Issue ID: 18382
           Summary: Crash with -unittest -test
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

Reproduce:
echo "import std.algorithm; enum array = sort(string[].init);" > test.d
dmd -deps -unittest test.d

Expected: 

Linker error about missing main

Actual:

Compiler crashes.

--
Feb 06