Temp local variable indices overwriting normal local variables in stack and 
boxed variable compilers
----------------------------------------------------------------------------------------------------

                 Key: JRUBY-2043
                 URL: http://jira.codehaus.org/browse/JRUBY-2043
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1RC2


{code}
def foo; 1.times { a, b = [], 5; a[1] = []; return b; }; end; foo
{code}

This should return 5, but it returns [] because the "b" variable index is 
getting overwritten by a temporary variable used for the a[1] = [] attr 
assignment.

Fix coming.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to