1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:14:40 -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)
goto nottop;
walktype(n->left, Erv);
if(n->left == N) {
yyerror("missing argument to len");
goto ret;
}
defaultlit(n->left, T);
implicitstar(&n->left);
t = n->left->type;