https://issues.dlang.org/show_bug.cgi?id=18583
Issue ID: 18583 Summary: Wrong symbol in error message Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: simen.kja...@gmail.com struct S { int n; enum t = tmp!(a => n); } string tmp(alias T)() { return ""; } foo.d(6): Error: function foo.S.tmp!((a) => n).tmp need 'this' to access member tmp foo.d(3): called from here: tmp() Notice that the error message claims tmp needs 'this' to access itself. Surely the latter should say 'member n' instead. --