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

           Summary: [64bit] wrong code for ref parameter and
                    scope(success)
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Don <[email protected]> 2013-02-22 00:59:55 PST ---
64 bit only. Originally found in D1, but also applies to D2.
------

int bug9568(ref string x)
{
    string y = x;
    scope (success)
    {
        assert(x == y);
    }
    return 0;
}

void main()
{
    string e = "xxx";    
    int result = bug9568(e);
    assert( ! result ); // fails
}

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

Reply via email to