diff --git a/src/cmd/gc/print.c b/src/cmd/gc/print.c index f9799c5231c..8d85d046529 100644 --- a/src/cmd/gc/print.c +++ b/src/cmd/gc/print.c @@ -297,7 +297,8 @@ exprfmt(Fmt *f, Node *n, int prec) fmtprint(f, "["); exprfmt(f, n->right->left, 0); fmtprint(f, ":"); - exprfmt(f, n->right->right, 0); + if(n->right->right != N) + exprfmt(f, n->right->right, 0); fmtprint(f, "]"); break;