Closed holly-cummins closed 6 months ago
This reproducer is invalid, because it uses grr
in one place, and grrr
in another place. I confirm the behaviour is the same in Satriani. And if I use consistent naming, the variable value does change. So while we do have loop and variable scope issues (see #110), I think this issue can be closed as invalid.
This is a fairly serious functional issue. This can cause hangs, because if the variable is used for a 'while' check and its value is always 0, the loop becomes infinite.
I think it has something to do with result handles and assignment and writing to a result handle rather than the top-level variable.
I think this is the same issue as #112, but I'm leaving that one open to confirm, and write a test for that specific case.
This reproducer shows the problem (although it's longer than it needs to be):