[Issue 9568] New: [64bit] wrong code for ref parameter and scope(success)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 22 00:59:56 PST 2013


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 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: -------


More information about the Digitalmars-d-bugs mailing list