March 03, 2019 [Issue 19717] New: ICE/segfault when using __traits(getMember) on overloaded function with "undefined identifier" error | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19717 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. -- |
Copyright © 1999-2021 by the D Language Foundation