[Issue 13135] IFTI fails on partially qualified argument in some cases

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 15 19:25:35 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13135

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
(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

--


More information about the Digitalmars-d-bugs mailing list