bug with select :=

R=r
OCL=25278
CL=25278
This commit is contained in:
Ken Thompson 2009-02-21 12:41:34 -08:00
parent 82c38cf8dd
commit a665e2924c
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,6 @@ loop:
case OSELECT:
if(top != Etop)
goto nottop;
walkselect(n);
goto ret;
@ -1487,6 +1486,7 @@ selectas(Node *name, Node *expr)
if(expr == N || expr->op != ORECV)
goto bad;
walktype(expr->left, Erv);
t = expr->left->type;
if(t == T)
goto bad;