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:59:12 +00:00
parent ae774286e8
commit c4267a3d35
3 changed files with 861 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ count_rr_conflicts (int state)
int count = 0;
int j;
for (j = m; j < n; j++)
if (BITISSET (LA (m), j))
if (BITISSET (LA (i), j))
count++;
if (count >= 2)