← Back to index
|
Original Bugzilla link
Bug 13135 – IFTI fails on partially qualified argument in some cases
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-15T16:09:00Z
Last change time
2014-07-16T02:25:35Z
Keywords
rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2014-07-15T16:09:21Z
This code should compile: --- alias A = int[]; void f(T)(const(T), const(T)*) { } void main() { A a; f!A(a, &a); // ok f(a, &a); // fails } --- main.d(9): Error: template main.f cannot deduce function from argument types !()(int[], int[]*), candidates are: main.d(3): main.f(T)(const(T), const(T)*) ---
Comment #1
by k.hara.pg — 2014-07-16T02:25:35Z
(In reply to Denis Shelomovskij from comment #0) > This code should compile: > --- > alias A = int[]; > > void f(T)(const(T), const(T)*) { } > > void main() > { > A a; > f!A(a, &a); // ok > f(a, &a); // fails > } > --- > main.d(9): Error: template main.f cannot deduce function from argument types > !()(int[], int[]*), candidates are: > main.d(3): main.f(T)(const(T), const(T)*) > --- It's timely fixed in
https://github.com/D-Programming-Language/dmd/pull/3763