www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15669] New: Wrong line number in error message


          Issue ID: 15669
           Summary: Wrong line number in error message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

% cat test.d
alias AliasSeq(A ...) = A;

void foo()
    AliasSeq!int a;
% dmd test.d
test.d(5): Error: variable __a_field_0 cannot be read at compile time

The incorrect usage is actually at line 6.

Feb 10 2016