www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18583] New: Wrong symbol in error message


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

Mar 09 2018