bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oddity in yyerrlab


From: Andrew Suffield
Subject: Re: oddity in yyerrlab
Date: Wed, 5 Feb 2003 09:53:00 +0000
User-agent: Mutt/1.5.3i

On Tue, Feb 04, 2003 at 11:05:09PM -0800, Paul Eggert wrote:
> Andrew Suffield <address@hidden> writes:
> 
> > I can reproduce this at will locally, but since trapping it involves a
> > patched version of gcc, it's rather difficult to provide a test case.
> 
> Thanks very much for reporting this bug.  Can you please try this patch?
> (Note to Bison maintainers: data/lalr1.cc has the same bug, I but
> didn't have time to fix that.)
> 
> 2003-02-04  Paul Eggert  <address@hidden>
> 
>       * data/yacc.c (yyerrlab) [YYERROR_VERBOSE]:
>       Avoid subscript error in yycheck.  Bug reported by Andrew Suffield.
>       * data/glr.c (yyreportSyntaxError) [YYERROR_VERBOSE]: Likewise.
>       Check for malloc failure, for consistency with yacc.c.
>       (yytname_size): Remove, for consistency with yacc.c.

Yup, that made the problem go away.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK

Attachment: pgpDIBBtgm2hy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]