Go patch committed: Fix order of evaluation of struct literals

Ian Lance Taylor iant@google.com
Fri Mar 30 04:59:00 GMT 2012


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 they are evaluated in the order in which they are
written.  This patch ensures that this is the case.  Bootstrapped and
ran Go testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3621 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120330/560f88f3/attachment.bin>


More information about the Gcc-patches mailing list