mirror of
https://github.com/golang/go
synced 2024-11-26 22:21:27 -07:00
fix handling of *f() = 1
R=ken OCL=17625 CL=17641
This commit is contained in:
parent
0061e56196
commit
40fa690d75
@ -937,6 +937,8 @@ loop:
|
|||||||
case OIND:
|
case OIND:
|
||||||
if(top == Etop)
|
if(top == Etop)
|
||||||
goto nottop;
|
goto nottop;
|
||||||
|
if(top == Elv) // even if n is lvalue, n->left is rvalue
|
||||||
|
top = Erv;
|
||||||
walktype(n->left, top);
|
walktype(n->left, top);
|
||||||
if(n->left == N)
|
if(n->left == N)
|
||||||
goto ret;
|
goto ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user