Bug 8510 – No line number in error message for conflicting aliases

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-04T17:34:00Z
Last change time
2015-06-09T05:11:56Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
robert

Comments

Comment #0 by robert — 2012-08-04T17:34:35Z
$ cat test.d alias int a; alias int a; $ dmd test.d Error: alias test.a conflicts with alias test.a at test.d(2) The line number is only given for one of the conflicting symbols.
Comment #1 by k.hara.pg — 2012-08-06T04:41:30Z
I found similar issue. $ cat test.d int g; struct S { alias g a; alias g a; // line 4 } $ dmd -o- test.d Error: alias test.S.a conflicts with alias test.S.a at test.d(4)
Comment #2 by k.hara.pg — 2012-08-06T04:48:00Z
I think D1 also has the same issue. D2 pull: https://github.com/D-Programming-Language/dmd/pull/1072
Comment #3 by github-bugzilla — 2012-08-27T00:45:10Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8e9ac9bc36ffeca069e2896210bda95821bed1a2 fix Issue 8510 - No line number in error message for conflicting aliases https://github.com/D-Programming-Language/dmd/commit/c4dfdff1b11dc683ac630b7e4f2e2c845057b19b Merge pull request #1072 from 9rnsr/fix8510 Issue 8510 - No line number in error message for conflicting aliases
Comment #4 by k.hara.pg — 2012-09-23T18:52:26Z