Bug 9880 – Redundant template instance displaying in error message
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-04T21:57:00Z
Last change time
2013-04-05T03:34:27Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-04-04T21:57:37Z
This invalid code:
void foo(T)(int) if (is(T == int)) {}
void main() { alias f = foo!string; }
Outputs:
test.d(2): Error: template instance foo!(string) foo!(string) does not match template declaration foo(T)(int) if (is(T == int))
"foo!(string)" is displayed twice - it's redundant. Should be:
test.d(2): Error: template instance foo!(string) does not match template declaration foo(T)(int) if (is(T == int))