summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yacc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yacc.c b/yacc.c
index 760465d..6de46fb 100644
--- a/yacc.c
+++ b/yacc.c
@@ -444,7 +444,7 @@ tblset(int *tbl, Item *i, Term *t)
s = t->rule->rhs[t->dot];
if (s!=S) {
/* shift */
- if (s>=ntk)
+ if (s>=ntk || tbl[s]==-1)
return;
assert(i->gtbl[s]);
act = ARight;