Bison is dead wrong in its RR conflict reports.

* tests/torture.at (GNU Cim Grammar): New.
* src/conflicts.c (count_rr_conflicts): Fix.
This commit is contained in:
Akim Demaille
2002-01-06 20:49:53 +00:00
parent 73784c645d
commit 3460813bdb
3 changed files with 861 additions and 1 deletions

View File

@@ -265,7 +265,7 @@ count_rr_conflicts (state_t *state)
int count = 0;
int j;
for (j = 0; j < state->nlookaheads; ++j)
if (BITISSET (LA (state->lookaheadsp), state->lookaheadsp + j))
if (BITISSET (LA (state->lookaheadsp + j), i))
count++;
if (count >= 2)