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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugd...@yahoo.com.au


--- Comment #1 from Don <clugd...@yahoo.com.au> 2011-09-27 00:15:37 PDT ---
Reduced test case. Interestingly, the fact that this crashes shows that in the
quicksort range, std.sort sometimes swaps elements with themselves! Sounds
inefficient, is that behaviour correct?

void bug6672(ref string lhs, ref string rhs) 
{
    auto tmp = lhs;
    lhs = rhs;
    rhs = tmp;
}

static assert( {
    auto kw = ["a"];
    bug6672(kw[0], kw[0]);
    return true;
}());

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

Reply via email to