www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17648] New: dmd segfault on overload set introspection


          Issue ID: 17648
           Summary: dmd segfault on overload set introspection
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

$ cat blah.d
alias BS = BSA;
alias BS = BSB;

template BSA(alias T)

template BSB(T)

void foo()
    void bar(alias composite)()
        foreach (member; __traits(allMembers, composite))
            enum a = __traits(compiles, __traits(getMember, composite,


segfaults in resolvePropertiesOnly, no idea why it would end up there. I
initially thought it was to do with recursing on the same module, but it turns
out that it still happens if you take foo to another module.

Jul 13 2017