Reset current_class in the top-level error rules.

This fixes a weird internal error after a parse error in an ivar
declaration.
This commit is contained in:
Bill Currie 2012-12-23 05:57:13 +09:00
parent 1c76ccc425
commit 996b2734a4

View file

@ -285,12 +285,14 @@ external_def_list
| error ';'
{
yyerrok;
current_class = 0;
current_symtab = pr.symtab;
current_storage = sc_global;
}
| error '}'
{
yyerrok;
current_class = 0;
current_symtab = pr.symtab;
current_storage = sc_global;
}