]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: don't report mark if other things are broken
authorRuss Cox <rsc@golang.org>
Tue, 30 Jul 2013 14:27:26 +0000 (10:27 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 30 Jul 2013 14:27:26 +0000 (10:27 -0400)
Fixes #5598.

R=ken2
CC=golang-dev
https://golang.org/cl/12104043

src/cmd/gc/dcl.c

index d3759efde3f1677593e473aed5836025bd8a8f0f..dc4d1f18e1cac2064a7ffead51d15fc1169e6d9a 100644 (file)
@@ -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;
                }