diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 0983ce9eb78..be445d1d936 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -720,7 +720,7 @@ pexpr: { $$ = nod(OCALL, $1, $3); } -| LLEN '(' name ')' +| LLEN '(' expr ')' { $$ = nod(OLEN, $3, N); }