]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
* src/reader.c (grammar_current_rule_check): Also check that $$
[bison.git] / src / scan-gram.l
index 471d7b91255cb785028076d5c9ac301b91f97c76..58cda0c9e6bfdbbe86b5350b0db005a2357d95b7 100644 (file)
@@ -815,6 +815,7 @@ handle_action_dollar (char *text, location loc)
        type_name = "";
       obstack_fgrow1 (&obstack_for_string,
                      "]b4_lhs_value([%s])[", type_name);
+      current_rule->used = true;
     }
   else
     {
@@ -837,8 +838,7 @@ handle_action_dollar (char *text, location loc)
          obstack_fgrow3 (&obstack_for_string,
                          "]b4_rhs_value(%d, %d, [%s])[",
                          rule_length, n, type_name);
-         if (typed)
-           symbol_list_n_used_set (current_rule, n, true);
+         symbol_list_n_used_set (current_rule, n, true);
        }
       else
        complain_at (loc, _("integer out of range: %s"), quote (text));