Go patch committed: Check for nil pointers when taking address

Ian Lance Taylor iant@google.com
Mon Nov 11 18:52:00 GMT 2013


In Go 1.2 the language was changed slightly to prohibit taking the
address of a field in a struct given a nil pointer to the struct
(http://golang.org/s/go12nil).  This patch by Chris Manghane implements
that check in gccgo.  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: 4019 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131111/43b834af/attachment.bin>


More information about the Gcc-patches mailing list