From: Russ Cox Date: Wed, 22 Oct 2008 20:13:01 +0000 (-0700) Subject: fix handling of *f() = 1 X-Git-Tag: weekly.2009-11-06~2918 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=40fa690d75ea02b64c2aa299b3aff6904c14b604;p=gostls13.git fix handling of *f() = 1 R=ken OCL=17625 CL=17641 --- diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 6c991c6a6a..25f5d79d00 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -937,6 +937,8 @@ loop: case OIND: if(top == Etop) goto nottop; + if(top == Elv) // even if n is lvalue, n->left is rvalue + top = Erv; walktype(n->left, top); if(n->left == N) goto ret;