1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00

segment fault

R=rsc
OCL=31396
CL=31396
This commit is contained in:
Ken Thompson 2009-07-09 11:41:06 -07:00
parent 600d7828a7
commit 5ff7d84892

View File

@ -790,6 +790,10 @@ loop:
if(top != Erv) if(top != Erv)
goto nottop; goto nottop;
walktype(n->left, Erv); walktype(n->left, Erv);
if(n->left == N) {
yyerror("missing argument to len");
goto ret;
}
defaultlit(n->left, T); defaultlit(n->left, T);
implicitstar(&n->left); implicitstar(&n->left);
t = n->left->type; t = n->left->type;