Ensure current_symtab gets set at the start of parsing.

current_symtab must be set even if the first thing encountered is a syntax
error.
This commit is contained in:
Bill Currie 2011-01-25 12:12:36 +09:00
parent 69b889756d
commit 34ffce50fa

View file

@ -246,9 +246,9 @@ defs
}
| defs def
| defs obj_def
| error END { current_class = 0; yyerrok; }
| error ';' { yyerrok; }
| error '}' { yyerrok; }
| error END { current_class = 0; yyerrok; current_symtab = pr.symtab; }
| error ';' { yyerrok; current_symtab = pr.symtab; }
| error '}' { yyerrok; current_symtab = pr.symtab; }
;
def