[Issue 9568] [64bit] wrong code for scope(exit)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 22 03:40:07 PST 2013


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[64bit] wrong code for      |[64bit] wrong code for
                   |array ref parameter and     |scope(exit)
                   |scope(exit)                 |


--- Comment #4 from Don <clugdbug at yahoo.com.au> 2013-02-22 03:40:06 PST ---
Even further reduced. Reference parameter is not necessary. I also replaced the
scope(exit) with a try{}finally{} block, which is what happens in the
front-end.
==================
void use9568(char [] x, char [] y) {}

int bug9568()
{
    try
        return 7;
     finally
        use9568(null,null);
}

void main()
{
    assert( bug9568() == 7 );
}

-- 
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