Go patch committed: Check for value method on dereferenced value

Ian Lance Taylor iant@google.com
Sat Jan 21 22:21:00 GMT 2012


In Go pointers are automatically dereferenced when calling value
methods.  However, the Go frontend was accidentally permitting a double
dereference when calling a method on a pointer value, which the language
does not permit.  This patch fixes the problem.  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: 1074 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120121/ef496619/attachment.bin>


More information about the Gcc-patches mailing list