From: Russ Cox Date: Tue, 30 Jul 2013 14:27:26 +0000 (-0400) Subject: cmd/gc: don't report mark if other things are broken X-Git-Tag: go1.2rc2~892 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cd2eb4872223073ad00c6b06371c1ffcbad8fb63;p=gostls13.git cmd/gc: don't report mark if other things are broken Fixes #5598. R=ken2 CC=golang-dev https://golang.org/cl/12104043 --- diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index d3759efde3..dc4d1f18e1 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -141,6 +141,8 @@ testdclstack(void) for(d=dclstack; d!=S; d=d->link) { if(d->name == nil) { + if(nerrors != 0) + errorexit(); yyerror("mark left on the stack"); continue; }