fix when "x[i] op= y" evaluates x[i] more than once#8
fix when "x[i] op= y" evaluates x[i] more than once#8tsqua wants to merge 1 commit intogolang:masterfrom
Conversation
When evaluates x twice in "x op= y", which was detectable if evaluating y affects x. We should identify such cases and evaluate y first. For reference see this bug in the go git repository: Fix golang/go#52811
|
This PR (HEAD: 1dd2ac8) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/gofrontend/+/405394 to see it. Tip: You can toggle comments from me using the |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/405394. |
|
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/405394. |
|
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/405394. |
When evaluates x twice in "x op= y", which was detectable if
evaluating y affects x. We should identify such cases and evaluate
y first.
For reference see this bug in the go git repository:
Fix golang/go#52811