POSIX: complain if %prec's token was not defined.

* NEWS (2.5): Document.
* src/reader.c (grammar_rule_check): Convert warning to
complaint.
* tests/input.at (%prec's token must be defined): Update.
(cherry picked from commit 510df9519e)
This commit is contained in:
Joel E. Denny
2009-12-30 03:14:12 -05:00
parent 8bb3a2e7df
commit 882be728b2
4 changed files with 18 additions and 4 deletions

View File

@@ -327,8 +327,8 @@ grammar_rule_check (const symbol_list *r)
if (r->ruleprec
&& r->ruleprec->tag[0] != '\'' && r->ruleprec->tag[0] != '"'
&& !r->ruleprec->declared && !r->ruleprec->prec)
warn_at (r->location, _("token for %%prec is not defined: %s"),
r->ruleprec->tag);
complain_at (r->location, _("token for %%prec is not defined: %s"),
r->ruleprec->tag);
}