From: Russ Cox Date: Tue, 9 Feb 2010 05:40:35 +0000 (-0800) Subject: gc: fix method expression bug X-Git-Tag: weekly.2010-02-17~62 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9e2c9bb0ca26bddc6248e93ae00801e4d4f36be5;p=gostls13.git gc: fix method expression bug R=ken2 CC=golang-dev https://golang.org/cl/206043 --- diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 0643f77a95..11d142eebb 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -481,6 +481,7 @@ reswitch: n->op = ONAME; n->sym = methodsym(sym, l->type); n->type = methodfunc(n->type, 1); + n->xoffset = 0; getinargx(n->type)->type->type = l->type; // fix up receiver n->class = PFUNC; ok = Erv;