This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.3] fix to testsuite files which now get syntax error from new bison


These "fixes" avoid wrong failures, when gcc is built with a newer
bison (1.875). They are in the 3.2.3 release (naming-* only) and on
HEAD (on HEAD the crash2.C matches { dg-error "" }).

Ok for 3.3, or queue it for 3.3.1 (as the generated files are included
in the final release)?

	Matthias

Thanks to Jack Howard for pointing this out.

# DP: fix to testsuite files which now get syntax error from new bison

--- gcc/testsuite/g++.dg/parse/crash2.C.bak     2003-03-31 15:00:28.000000000 -0500
+++ gcc/testsuite/g++.dg/parse/crash2.C 2003-05-10 22:48:43.000000000 -0400
@@ -2,6 +2,6 @@
 int main(void)
 {
   char x, y;
-  if ('A' == x) && ('B' == y)) { } /* { dg-error "parse error" } */
+  if ('A' == x) && ('B' == y)) { } /* { dg-error "parse|syntax error" } */
   if (x == 'A') && (y == 'B')) { }
 }
--- gcc/testsuite/objc.dg/naming-1.m.bak	2003-05-11 15:52:28.000000000 -0400
+++ gcc/testsuite/objc.dg/naming-1.m	2003-05-11 15:53:16.000000000 -0400
@@ -17,5 +17,5 @@
 void bar(void)
 {
 	View *view;	/* ok */
-	View = 1;	/* { dg-error "parse error" } */
+	View = 1;	/* { dg-error "parse|syntax error" } */
 }
--- gcc/testsuite/objc.dg/naming-2.m.bak	2003-05-11 15:52:37.000000000 -0400
+++ gcc/testsuite/objc.dg/naming-2.m	2003-05-11 15:52:58.000000000 -0400
@@ -4,7 +4,7 @@
 
 @interface Foo
 @end
-float Foo;  /* { dg-error "parse error before" } */
+float Foo;  /* { dg-error "parse|syntax error before" } */
 
 double Bar;
 @interface Bar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]