[Issue 20472] [REG 2.068] slicing a static array results in another static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 30 18:49:22 UTC 2019


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

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg

--- Comment #1 from moonlightsentinel at disroot.org ---
Digger blames https://github.com/dlang/dmd/pull/4779 when using the following
test case:

void foo(size_t N)(ubyte[N], bool sa)
{
    assert(sa);
}

void foo()(ubyte[], bool sa)
{
    assert(!sa);
}

void main()
{
    ubyte[16] x;
    foo(x, true);
    foo(x[], false);
}

--


More information about the Digitalmars-d-bugs mailing list