Project

Profile

Help

Bug #2805

closed

Incorrect code in LocalVariableReference.copy()

Added by Michael Kay almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2016-06-21
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

In consequence of bug 2770, the code for VariableReference.copy() was changed in 9.7.0.6 to allow the copied variable reference to be bound to a new (copied) local parameter.

The code is clearly incorrect because it sets the binding property of the old variable reference, not the new one.

I tripped over this in 9.8 when testing the new LoopLifting logic. There are no known symptoms with 9.7, but the code is clearly wrong.

Please register to edit this issue

Also available in: Atom PDF