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))
Comment #1 by k.hara.pg — 2013-04-04T22:03:42Z
Comment #2 by github-bugzilla — 2013-04-05T03:34:20Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3021471e3600a01c8175389dbdde8238bb154332 fix Issue 9880 - Redundant template instance displaying in error message https://github.com/D-Programming-Language/dmd/commit/c43d21983cc646cb24389b35a208e9fbe50ac7c0 Merge pull request #1845 from 9rnsr/fix9880 Issue 9880 - Redundant template instance displaying in error message