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                       or...@nwra.com
Boulder, CO 80301                   http://www.nwra.com

_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to