fix segs on ondeclared identifiers

This commit is contained in:
Bill Currie 2001-07-03 20:42:07 +00:00
parent eb71edb5d4
commit ccc00b0608

View file

@ -407,6 +407,10 @@ expr
$$ = new_expr ();
$$->type = ex_def;
$$->e.def = PR_GetDef (NULL, $1, pr_scope, false);
if (!$$->e.def) {
error (0, "%s undeclared", $1);
$$->e.def = &def_float;
}
}
| const { $$ = $1; }
| '(' expr ')' { $$ = $2; $$->paren = 1; }