cmd/gc: don't report mark if other things are broken

Fixes #5598.

R=ken2
CC=golang-dev
https://golang.org/cl/12104043
This commit is contained in:
Russ Cox 2013-07-30 10:27:26 -04:00
parent 27d17255db
commit cd2eb48722
1 changed files with 2 additions and 0 deletions

View 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;
}