[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: assert failure at line 1896
From: |
Joel E. Denny |
Subject: |
Re: assert failure at line 1896 |
Date: |
Sat, 20 May 2006 19:13:38 -0400 (EDT) |
On Sat, 20 May 2006, Derek M Jones wrote:
> Using Bison 2.2 the grammar below generates an assert failure at
> line 1896 of the generated .tab.c file.
That's not good. I should've tested that more thoroughly.
The YYASSERT (the only one in yyresolveLocations) is bogus. Just remove
it from your Bison installation.
I've written a patch and will install it later.
> There are also various
> warnings about argument 3 being an incompatible pointer type (the
> more obvious fix).
Replacing this in your grammar:
#define YYSTYPE char *
with this:
#define YYSTYPE YYSTYPE
typedef char *YYSTYPE;
should work around the bug for now.
Akim, I believe the const in b4_yysymprint_generate was your commit. Do
you want to require users to typedef YYSTYPE, or should we remove the
const?
Derek, thanks for the report.
Joel