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)