%expect-rr is for GLR only

* src/conflicts.c (conflicts_print): Complain about %expect-rr if not
in GLR mode, regardless of the number of reduce/reduce conflicts.
* tests/conflicts.at (%expect-rr non GLR): New test.
* NEWS: Update.
This commit is contained in:
Akim Demaille
2012-09-21 15:19:12 +02:00
parent 51c994d8f0
commit d140056923
3 changed files with 40 additions and 4 deletions

View File

@@ -576,7 +576,7 @@ conflicts_print (void)
}
}
if (! glr_parser && rrc_total > 0 && expected_rr_conflicts != -1)
if (! glr_parser && expected_rr_conflicts != -1)
{
complain (Wother, _("%%expect-rr applies only to GLR parsers"));
expected_rr_conflicts = -1;