Description of problem: in bison-1.875c-1, in data/yacc.c line 993 should be: YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);])[ instead of 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 correct line. Version-Release number of selected component (if applicable): 1.875c-1 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: compiler gives: error: subscripted value is neither array nor pointer because yylen is used as a subscripted value. Expected results: Additional info:
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. thanks, Jozef Kruger