10737 – newer bison causes g++.dg/ parse/crash2.C to incorrectly report as failed (original) (raw)

Description Jack Howarth 2003-05-11 02:46:01 UTC

The current debian build of gcc 3.3 prerelease 2 exposed a flaw in the g++.dg/ parse/crash2.C test when using the new bison. The results I get are posted at...

http://gcc.gnu.org/ml/gcc/2003-05/msg01030.html

and an analysis of the origin of the problem is at

http://gcc.gnu.org/ml/gcc/2003-05/msg01031.html

Release: gcc-3.3 prerelease 2 (05/09/2003)

Environment: Debian ppc sid linux

How-To-Repeat: build the current gcc-3.3_3.3ds8-0pre9 source package on debian ppc sid.

Comment 1 Jack Howarth 2003-05-11 02:46:01 UTC

Fix: I am told the proper fix for this is...

Change this line: if ('A' == x) && ('B' == y)) { } /* { dg-error "parse error" } / to: if ('A' == x) && ('B' == y)) { } / { dg-error "parse|syntax error" } */

Comment 2 Drea Pinski 2003-05-22 15:10:15 UTC

This was fixed for 3.3.1 <http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g%2b%2b.dg/ parse/crash2.C.diff?r1=1.1.2.1&r2=1.1.2.2>.

Comment 3 Drea Pinski 2003-05-23 19:48:13 UTC

Fixed for 3.3.1. see <http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g%2b%2b.dg/ parse/crash2.C.diff?r1=1.1.2.1&r2=1.1.2.2> for when.