Euphoria Ticket #234: RHS self assignment crash

The following code crashes when translated:

sequence s = { {{1}}, {1} } + 1 
s = s[1][1] 
? s[1] -- should be 2 

The RHS subscript (s[1][1]) causes s to be dereferenced and freed before the assignment is made.

Details

Type: Bug Report Severity: Major Category: Translator
Assigned To: mattlewis Status: Fixed Reported Release: 3522
Fixed in SVN #: 3527, 3526 View VCS: 3527, 3526 Milestone:

1. Comment by mattlewis Oct 19, 2010

Fixed RHS_SUBS translation so that the dereferencing is done after the assignment is made.

Search



Quick Links

User menu

Not signed in.

Misc Menu