Description of problem:
in bison-1.875c-1, in data/yacc.c
line 993 should be:
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);])[
YYLLOC_DEFAULT (yyloc, yylsp - yylen, yylen);])[
(parentheses around the second argument of the macro).
Note that in version 1.851 from the bison gnu website it is like the
Version-Release number of selected component (if applicable):
Steps to Reproduce:
compiler gives: error: subscripted value is neither array nor pointer
because yylen is used as a subscripted value.
Please supply an actual test case that is broken by the current code.
Have to make apologies.. somewhere in another file of ours, the
YYLLOC_DEFAULT macro was overwritten. We used an bison 1.35 before,
but since the parentheses moved to the macro def instead of the use,
it broke with our redefine and the new bison.
Will look more closely in the future.