www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20692] New: Nested alias declarations and getMember trait can

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

          Issue ID: 20692
           Summary: Nested alias declarations and getMember trait can
                    crash dmd
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: boris2.9 gmail.com

Test case:
struct S() {
    void fun() {
        gun("");
    }
    void gun(T)(T) {
        alias buggy = bug;
    }
}

alias X = S!();

void main() {
    X().gun(0);
}

alias bug =  __traits(getMember, X, "fun");

--
Mar 21