X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/55b418199601aad0f4fd257b87be21b150283079..e89a22bfab22e4d2ee73be49dcb66b51f8d0e892:/src/conflicts.c?ds=sidebyside diff --git a/src/conflicts.c b/src/conflicts.c index 21c1f11c..6f6ea882 100644 --- a/src/conflicts.c +++ b/src/conflicts.c @@ -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 (j), i)) count++; if (count >= 2) @@ -401,7 +401,14 @@ conflicts_print (void) if (expected_conflicts != -1 && !src_ok) { - complain_message_count++; + /* FIXME: BIG ATTROCIOUS HACK. For flames, complaints and so + on, see Bruno Haible. GNU Gettext's plural.y's %expect is + wrong, and newer Bison reject it. But then, Bruno will be + overwhelmed by bug reports, until a fixed Gettext is + released. So for the 1.3x generation only, we leave a puke + puke hack. */ + if (!strsuffix (infile, "plural.y")) + complain_message_count++; fprintf (stderr, ngettext ("expected %d shift/reduce conflict\n", "expected %d shift/reduce conflicts\n", expected_conflicts),