diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index 6489e7bee30..225a9027797 100644 --- a/src/cmd/gc/lex.c +++ b/src/cmd/gc/lex.c @@ -158,6 +158,7 @@ main(int argc, char *argv[]) if(nerrors) errorexit(); + flusherrors(); exit(0); return 0;