[Issue 18583] New: Wrong symbol in error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 9 12:13:53 UTC 2018


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: nobody at puremagic.com
          Reporter: simen.kjaras at 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.

--


More information about the Digitalmars-d-bugs mailing list