Bug 2296 – (D1 only) IFTI with parameterization on fixed array size does not work

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2008-08-19T22:07:48Z
Last change time
2019-07-13T11:37:55Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Andrei Alexandrescu

Comments

Comment #0 by andrei — 2008-08-19T22:07:48Z
The test says it all: void f(uint D)(int i[D]...) { } void main() { f(1, 2, 3); }
Comment #1 by smjg — 2008-11-24T09:41:32Z
(In reply to comment #0) > The test says it all: No it doesn't. It doesn't tell anybody what happens when you try this code. bz2296.d(7): template bz2296.f(uint D) does not match any template declaration bz2296.d(7): template bz2296.f(uint D) cannot deduce template function from argument types (int,int,int)
Comment #2 by k.hara.pg — 2012-02-02T04:38:19Z
D2 has same problem, and I've posted pull request for D2 branch: https://github.com/D-Programming-Language/dmd/pull/431
Comment #3 by github-bugzilla — 2012-08-28T00:38:39Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/34e1b767e9c78f728523ab2ccb5f2d1f377e0ed4 Issue 2296 - IFTI with parameterization on fixed array size does not work https://github.com/D-Programming-Language/dmd/commit/a5c56ac957035efc142ad4a1123c6b138f1e4a15 Merge pull request #431 from 9rnsr/fix6764 Issue 2296 & 6764 - IFTI fails on typesafe variadic function
Comment #4 by verylonglogin.reg — 2012-11-04T22:33:50Z
It is fixed for D2.
Comment #5 by razvan.nitu1305 — 2019-07-13T11:37:55Z
Closing as WONTFIX as the issue is solved in D2.