delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/25/14:21:54

X-Spam-Check-By: sourceware.org
Date: Thu, 25 May 2006 11:21:39 -0700 (PDT)
From: Greg Couch <gregc AT cgl DOT ucsf DOT edu>
To: cygwin AT cygwin DOT com
Subject: FYI: latest bison generates syntax error
Message-ID: <Pine.OSF.4.63.0605251032390.1634186@guanine.cgl.ucsf.edu>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Just updated my bison recently (bison-2.1-1) and now the generated y.tab.c 
file has an extra semicolon in it that causes the compiler to choke:

 	#ifdef YYPARSE_PARAM
 	# if defined (__STDC__) || defined (__cplusplus)
 	int yyparse (void *YYPARSE_PARAM)
 	# else
 	int yyparse (YYPARSE_PARAM)
 	  void *YYPARSE_PARAM;
 	# endif
 	#else /* ! YYPARSE_PARAM */
 	#if defined (__STDC__) || defined (__cplusplus)
 	int
 	yyparse (void)
 	#else
 	int
 	yyparse ()
-->	    ;
 	#endif
 	#endif
 	{


Bison 2.2, which came out last week fixes the problem.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019