bug-bison
[Top][All Lists]
Advanced

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

Re: error_verbose yyoverflow conflict


From: Joel E. Denny
Subject: Re: error_verbose yyoverflow conflict
Date: Fri, 3 Aug 2007 00:51:35 -0400 (EDT)

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  <address@hidden>
+
+       * 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  <address@hidden>
 
        * 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             address@hidden
 Bruce Lilly               address@hidden
 Bruno Haible              address@hidden
 Charles-Henri de Boysson  address@hidden
+Christian Burger          address@hidden
 Cris Bailiff              address@hidden
 Cris van Pelt             address@hidden
 Daniel Hagerty            address@hidden
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.  |
 `-------------------------------------------------*/




reply via email to

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