www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19954] New: DMD crashes

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

          Issue ID: 19954
           Summary: DMD crashes
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: an.address yahoo.de

DMD64 D Compiler v2.086.0
Fedora Linux 5.1.5-300.fc30.x86_64 x86_64

Compiling this code causes dmd to crash, saying "Illegal instruction":

enum String {
    STRING = "string",
}

void main() {
    import std.algorithm;
    import std.traits;
    assert((cast(string[])(EnumMembers!String)).canFind("none")); 
}

--
Jun 12 2019