]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: disallow call of *T method using **T variable
authorRuss Cox <rsc@golang.org>
Tue, 21 Oct 2014 02:04:12 +0000 (22:04 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 21 Oct 2014 02:04:12 +0000 (22:04 -0400)
commit93fcb922570ac3b601f5addbe408866641783dac
treed0b25b1007a696877290652504d1928f1ce4061c
parent70f2f1b4705bfeaaeffa9fd7bf322473b27f2baf
cmd/gc: disallow call of *T method using **T variable

This brings cmd/gc in line with the spec on this question.
It might break existing code, but that code was not conformant
with the spec.

Credit to Rémy for finding the broken code.

Fixes #6366.

LGTM=r
R=golang-codereviews, r
CC=adonovan, golang-codereviews, gri
https://golang.org/cl/129550043
src/cmd/gc/typecheck.c
test/fixedbugs/bug371.go