On Mon, 23 Jul 2007, Christian Burger wrote: > Defining both %error_verbose and yyoverflow under bison v2.3 > and compiling the generated code produces: > > error: label 'yyexhaustedlab' used but not defined
Thanks. I committed the following to fix that. Index: ChangeLog =================================================================== RCS file: /sources/bison/bison/ChangeLog,v retrieving revision 1.1715 diff -p -u -r1.1715 ChangeLog --- ChangeLog 29 Jul 2007 01:17:40 -0000 1.1715 +++ ChangeLog 3 Aug 2007 04:48:00 -0000 @@ -1,3 +1,11 @@ +2007-08-03 Joel E. Denny <[EMAIL PROTECTED]> + + * data/yacc.c (yyexhaustedlab): Define it when YYERROR_VERBOSE is + true since it's then always used regardless of whether yyoverflow is + defined. Reported by Christian Burger at + <http://lists.gnu.org/archive/html/bug-bison/2007-07/msg00031.html>. + * THANKS: Add Christian Burger. + 2007-07-28 Joel E. Denny <[EMAIL PROTECTED]> * src/muscle_tab.c (muscle_percent_define_flag_if): In order to Index: THANKS =================================================================== RCS file: /sources/bison/bison/THANKS,v retrieving revision 1.75 diff -p -u -r1.75 THANKS --- THANKS 28 Jul 2007 04:27:32 -0000 1.75 +++ THANKS 3 Aug 2007 04:48:01 -0000 @@ -19,6 +19,7 @@ Brandon Lucia [EMAIL PROTECTED] Bruce Lilly [EMAIL PROTECTED] Bruno Haible [EMAIL PROTECTED] Charles-Henri de Boysson [EMAIL PROTECTED] +Christian Burger [EMAIL PROTECTED] Cris Bailiff [EMAIL PROTECTED] Cris van Pelt [EMAIL PROTECTED] Daniel Hagerty [EMAIL PROTECTED] Index: data/yacc.c =================================================================== RCS file: /sources/bison/bison/data/yacc.c,v retrieving revision 1.164 diff -p -u -r1.164 yacc.c --- data/yacc.c 24 Feb 2007 05:43:35 -0000 1.164 +++ data/yacc.c 3 Aug 2007 04:48:01 -0000 @@ -1448,7 +1448,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#ifndef yyoverflow +#if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/
