mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
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:
parent
1c76ccc425
commit
996b2734a4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue