libgo patch committed: Fix self-referential struct

Ian Lance Taylor iant@google.com
Thu Jan 27 22:49:00 GMT 2011


This patch to the Go frontend fixes another case of a self-referential
struct.  In this case the struct had a field whose type was a function
which took an argument which was a pointer to a struct which had a field
which was an array of the original struct.  This patch fixes the problem
by treating fields of function type the same way we treat fields of
pointer type.  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: 778 bytes
Desc: selfref
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110127/064542c5/attachment.bin>


More information about the Gcc-patches mailing list