X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0d4b994cc2559aa7eb58b26d5fa96be241755a92..3b0b682fd6c55c0387aacbb86bc708da09ad2ae3:/src/reader.c diff --git a/src/reader.c b/src/reader.c index 27ddad08..9bb9d7b6 100644 --- a/src/reader.c +++ b/src/reader.c @@ -470,6 +470,8 @@ grammar_current_rule_symbol_append (symbol *sym, location loc, p = grammar_symbol_append (sym, loc); if (name) assign_named_ref(p, name); + if (sym->status == undeclared || sym->status == used) + sym->status = needed; } /* Attach an ACTION to the current rule. */