This patch by Cherry Zhang changes the Go frontend to run the
order_evaluations before the remove_shortcuts pass.
In remove_shortcuts, the shortcut expressions (&&, ||) are rewritten
to if statements, which are lifted out before the statement containing
the shortcut expression. If the containing
This patch to the Go frontend fixes the order of evaluation for a
statement like m[0] = len(m) when m is a map. I added a test case for
this to the master testsuite. Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch.
Ian
diff -r 5b5853844f00 go
This patch to the Go compiler fixes the order of evaluation of struct
composite literals. Previously the compiler assumed that all fields in
the struct were set in order. However, the composite literal might be
written differently. If the composite literal had function calls, Go
specifies that t