http://d.puremagic.com/issues/show_bug.cgi?id=9568



--- Comment #1 from Don <[email protected]> 2013-02-22 01:33:13 PST ---
Slightly clearer test case, which works unaltered on D1 as well. It is
necessary for both x and y to be passed as parameters (this was happening with
x==y in my first test case, which was making a call to the runtime).
------
void use9568(char [] m, char [] p) {}

int bug9568(ref char[] x)
{
    char[] y = x;
    scope (success)
        use9568(x,y);
    return 7;
}

void main()
{
    char[] e = null;
    assert( bug9568(e) == 7 );
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to