www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18970] New: DMD segfault due to opDispatch

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

          Issue ID: 18970
           Summary: DMD segfault due to opDispatch
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: luis luismarques.eu

This crashes DMD:

struct S
{
    this(int)
    {
        this.yyy;
    }

    auto opDispatch(string name)()
    {
        alias T = typeof(x);
        static if(is(T.U)) {}
    }
}

--
Jun 11 2018