www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19755] New: Compiler crash

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

          Issue ID: 19755
           Summary: Compiler crash
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: eyal weka.io

This piece of code generates a crash on both dmd and ldc:

struct Thunk(Dummy) {
    void opAssign(int dlg) {}
    auto get() inout {
        Thunk* self;
        self.x = 0;
    }
    alias get this;
}

alias T = Thunk!int;

--
Mar 20 2019