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]

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


 > -  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


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