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

          Issue ID: 20056
           Summary: DMD Segfault in 2.087
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following code segfaults the compiler. I suspect
https://github.com/dlang/dmd/pull/9282 was the cause but Digger was unable to
bisect usefully

struct Def(alias fn)
{
    alias func = alias_selector!(fn).VOverloads[0];
}

template alias_selector(alias fn)
{
    alias VOverloads = __traits(getOverloads, __traits(parent, fn),
__traits(identifier, fn));
}

void init_rangewrapper()
{
    Def!(RangeWrapper.iter).func;
}

struct RangeWrapper
{
    void iter() { }
}

--

Reply via email to