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

Nemanja Boric <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Nemanja Boric <[email protected]> ---
This can lead to the subtle bugs like:

import std.stdio;

int[] foo(int val)
{
    int[10] array;
    array[0] = val;

    return array[];    
}

void main()
{
    auto val = foo(1);
    auto val2 = foo(2);
    writeln(val[0]); // Prints 2
}

--

Reply via email to