Closed Bug 438675 Opened 18 years ago Closed 17 years ago

Postfix and prefix operators are wonky again

Categories

(Tamarin Graveyard :: Self-hosting compiler (ESC), defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: lhansen, Assigned: lhansen)

Details

Regression from the bad old days. Test case: es> var x = [0] es> x[0]++ es> print(x[0]) 0 es> x[0] += 1 es> print(x[0]) 1 es> var y = [0] es> y[0]++ es> print(y) 0,0 Obviously the second element should not be there.
The code in cgUnaryExpr is completely wrong for this case -- not even in the vicinity of correct. See cgSetObjectRefExpr for more appropriate code.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.