Thread overview
[Issue 16779] VRP for array literals does not work with templated functions taking a static array if the size is inferred
Sep 20, 2017
timon.gehr@gmx.ch
Feb 15, 2018
Timothee Cour
Dec 17, 2022
Iain Buclaw
September 20, 2017
https://issues.dlang.org/show_bug.cgi?id=16779

timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr@gmx.ch
           Severity|enhancement                 |normal

--
February 15, 2018
https://issues.dlang.org/show_bug.cgi?id=16779

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2@gmail.com> ---
same problem with tuples

U[T.length] staticArray(U = CommonType!T, T...)(T a)
{
    return [a];
}

auto a = staticArray2!bute(1, 2);

Error: cannot implicitly convert expression [_param_0, _param_1] of type int[] to byte[2]

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16779

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--