Bug 15669 – Wrong line number in error message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-10T12:02:00Z
Last change time
2016-02-11T23:19:11Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
john.loughran.colvin

Comments

Comment #0 by john.loughran.colvin — 2016-02-10T12:02:12Z
% cat test.d alias AliasSeq(A ...) = A; void foo() { AliasSeq!int a; a[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.
Comment #1 by k.hara.pg — 2016-02-11T05:40:48Z
Comment #2 by github-bugzilla — 2016-02-11T23:19:11Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0a496e2f825c02aef9c358dcc4fcce8af77ba9b3 fix Issue 15669 - Wrong line number in error message Member expressions of `TupleDeclaration` have different loc than the `TupleExp` in its ctor. It should be fixed. https://github.com/D-Programming-Language/dmd/commit/e568416319850ece8062f4552af303d36a91f31a Merge pull request #5439 from 9rnsr/fix15669 Issue 15669 - Wrong line number in error message