Bug 13378 – Wrong failure of template value parameter deduction in IFTI

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-26T02:11:00Z
Last change time
2014-09-02T02:14:22Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-08-26T02:11:18Z
From: http://forum.dlang.org/thread/[email protected] This code works with 2.065, but fails with 2.066. ------ struct Vec(size_t n, T, string as) { T[n] data; } void doSome(size_t n, T, string as)(Vec!(n,T,as) v) {} void main() { auto v = Vec!(3, float, "xyz")([1,2,3]); doSome(v); } ------ test.d(6): Error: template test.doSome(uint N, T, string AS)(Vec!(N, T, AS) v) specialization not allowed for deduced parameter AS Introduced in: https://github.com/D-Programming-Language/dmd/pull/3536
Comment #1 by k.hara.pg — 2014-08-26T03:36:02Z
Comment #2 by github-bugzilla — 2014-08-30T09:14:24Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0efadbab0a8e7e67626b3c2652a2c1faa75d4f08 fix Issue 13378 - Wrong failure of template value parameter deduction in IFTI https://github.com/D-Programming-Language/dmd/commit/50e60a1268972b19c6ef33e7d9bf8c5879cef28d Merge pull request #3898 from 9rnsr/fix13378 [REG2.066] Issue 13378 - Wrong failure of template value parameter deduction in IFTI
Comment #3 by github-bugzilla — 2014-09-02T02:14:22Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8381f61baf838f289a89c3f9fe324e04138b8324 Merge pull request #3898 from 9rnsr/fix13378 [REG2.066] Issue 13378 - Wrong failure of template value parameter deduction in IFTI