www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19717] New: ICE/segfault when using __traits(getMember) on


          Issue ID: 19717
           Summary: ICE/segfault when using __traits(getMember) on
                    overloaded function with "undefined identifier" error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: elpenguino+D gmail.com

Reduced code:
enum bar = __traits(getMember, mixin(__MODULE__), "foo");

auto foo() {
        return foo();

void foo(Foo) {}
This also prints a misleading error: `Error: cannot overload both property and
non-property functions`

The error appears to have been introduced after DMD 2.070.2.

Mar 03 2019