[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error with bison 2.6.X
From: |
Orion Poplawski |
Subject: |
Error with bison 2.6.X |
Date: |
Fri, 02 Nov 2012 10:24:48 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 |
I'm trying to compile a very old program (ftnchek) with bison 2.6.X and
getting the following error:
y.tab.c:1285:3: warning: implicit declaration of function 'YY'
[-Wimplicit-function-declaration]
y.tab.c:1286:1: error: initializer element is not constant
y.tab.c:1286:1: error: (near initialization for 'yytname[422]')
# 1181 "y.tab.c"
static const char *const yytname[] =
{
.....
"nonneg unsigned int const", "pre label", "label", YY ((void *)0)
};
This seems to be what is triggering it.
It compiles fine with 2.5, and with that the last element above is simply "0".
Any idea what is wrong? I'm afraid I know nothing about using bison so
don't know whether this is a bug in bison or an error in how it is being used.
TIA,
Orion
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane address@hidden
Boulder, CO 80301 http://www.nwra.com
- Error with bison 2.6.X,
Orion Poplawski <=