]> git.saurik.com Git - bison.git/blobdiff - ChangeLog
Warn about unset midrule $$ if the corresponding $n is used.
[bison.git] / ChangeLog
index a8912a45413b80b4e889196bf0e3f34637a8f993..0b026dfeef623b52c49b3743203408d6e08017bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2006-10-20  Joel E. Denny  <jdenny@ces.clemson.edu>
+
+       Warn about unset midrule $$ if the corresponding $n is used.
+       * src/reader.c (symbol_should_be_used): Check midrule parent rule for
+       $n usage.
+       (packgram): Before invoking grammar_rule_check on any rule, make sure
+       all actions have already been scanned in order to set `used' flags.
+       Otherwise, checking that a midrule's $$ is set will not always work
+       properly because the midrule check must forward-reference the midrule's
+       parent rule.
+       * tests/input.at (AT_CHECK_UNUSED_VALUES): Extend to check the new
+       warning.
+
 2006-10-20  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        More improvements to the documentation of the prologue alternatives: