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)