This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.3] fix to testsuite files which now get syntax error from new bison
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: doko at cs dot tu-berlin dot de
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Mon, 12 May 2003 12:49:09 -0400 (EDT)
- Subject: Re: [3.3] fix to testsuite files which now get syntax error from new bison
- References: <16063.18599.741035.878643@gargle.gargle.HOWL>
> - if ('A' == x) && ('B' == y)) { } /* { dg-error "parse error" } */
> + if ('A' == x) && ('B' == y)) { } /* { dg-error "parse|syntax error" } */
I think your regexp only works by chance. I.e. it resolves to:
"parse" or "syntax error"
not:
"parse error" or "syntax error"
as we want.
The convention we've been using to fix these is:
"(parse|syntax) error".
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu