mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user