objc/10739: new bison error syntax confuses objc.dg testsuite tests
howarth@bromo.med.uc.edu
howarth@bromo.med.uc.edu
Sun May 11 14:10:00 GMT 2003
>Number: 10739
>Category: objc
>Synopsis: new bison error syntax confuses objc.dg testsuite tests
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 11 13:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jack Howarth
>Release: gcc-3.3 prerelease (20030509)
>Organization:
>Environment:
Debian ppc sid linux with binutils 2.14.90.0.1.
>Description:
The objc.dg testsuite tests naming-1.m and naming-2.m are incorrectly being treated as failed when run against the new bison.
Executing on host: /home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/build/gcc/xgcc -B/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/build/gcc/ /home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m -I/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/../../libobjc -L/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/build/powerpc-linux/libobjc/.libs -S -o naming-1.s (timeout = 300)
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m: In function `foo':
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m:12: error: `view' undeclared (first use in this function)
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m:12: error: (Each undeclared identifier is reported only once
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m:12: error: for each function it appears in.)
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m: In function `bar':
/home/howarth/debian-gcc-3.3/gcc-3.3-3.3ds8/src/gcc/testsuite/objc.dg/naming-1.m:20: error: syntax error before '=' token
compiler exited with status 1
>How-To-Repeat:
build the current gcc-3.3-3.3ds8-pre9 package on debian sid
>Fix:
--- src/gcc/testsuite/objc.dg/naming-1.m.bak 2003-05-11 09:29:43.000000000 -0400
+++ src/gcc/testsuite/objc.dg/naming-1.m 2003-05-11 09:30:26.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" } */
}
--- src/gcc/testsuite/objc.dg/naming-2.m.bak 2003-05-11 09:50:16.000000000 -0400
+++ src/gcc/testsuite/objc.dg/naming-2.m 2003-05-11 09:32:35.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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list