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

@@ -807,8 +807,8 @@ AT_DATA([[input.y]],
start: %prec PREC ;
]])
AT_BISON_CHECK([[input.y]], [[0]], [],
[[input.y:2.8-17: warning: token for %prec is not defined: PREC
AT_BISON_CHECK([[input.y]], [[1]], [],
[[input.y:2.8-17: token for %prec is not defined: PREC
]])
AT_CLEANUP