Go patch committed: Fix struct with pointer to array of struct

Ian Lance Taylor iant@google.com
Wed Jan 19 06:04:00 GMT 2011


This patch fixes code like

type S struct {
	a *A
}
type A [1024]S

in which a struct has a field which is a pointer to an array of the same
struct.  Previously the struct would be uninitialized when the array
type was created, and the array would get the wrong size.  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: 1577 bytes
Desc: struct
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110119/f9c5c578/attachment.bin>


More information about the Gcc-patches mailing list