# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #37399] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37399 >
This transaction appears to have no content
According to the Bison Changlog, the error string "parse error" was
changed to "syntax error" in bison 1.75c. I haven't tried that version
but can confirm that it has changed in 1.875.
This patch adds a note about this to the top of imcc/imcc.y and changes
the tests accordingly. If this patch is applied, the rebuild version of
these files would also need to checked-in:
imcparser.c
imcparser.h
imclexer.c
Comments?
-J
--
Index: imcc/imcc.y
===================================================================
--- imcc/imcc.y (revision 9425)
+++ imcc/imcc.y (working copy)
@@ -8,6 +8,11 @@
*
* Grammar for the parser.
*
+ * This file should be processed with bison 1.75c or later. Version 1.75c
+ * changed the error message string "parse error" to "syntax error" to be more
+ * compatible with POSIX. Earlier versions will work but the tests in
+ * t/syn/const.t will fail because of the difference in error strings.
+ *
*/
#include <string.h>
Index: imcc/t/syn/const.t
===================================================================
--- imcc/t/syn/const.t (revision 9425)
+++ imcc/t/syn/const.t (working copy)
@@ -263,7 +263,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
@@ -278,7 +278,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
@@ -294,7 +294,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
@@ -309,7 +309,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
@@ -325,7 +325,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
@@ -386,7 +386,7 @@
print $S0
.end
CODE
-/^error:imcc:parse error, unexpected SHIFT_LEFT.*/
+/^error:imcc:syntax error, unexpected SHIFT_LEFT.*/
OUT
pgpkVvlzhiAIj.pgp
Description: PGP signature
