Hi Akim,
you were right, the #if 0 part was added by a script to work around a
compiler warning. When I regenerated the code with Bison 3.7.4, it was
no longer necessary.
Currently I try to get my changes included into CMake upstream. Once I
did that, I am going to come back to your other idea on improving the y
file.

Thanks!
Christoph

Am 20.01.21 um 06:14 schrieb Akim Demaille:
> Hi Christoph,
> 
>> Le 19 janv. 2021 à 08:27, Christoph Grüninger <f...@grueninger.de> a écrit :
> 
>>> 3. I removed the lines 1717 and 1745 as the label yyerrlab1 must be defined.
>>> Could you please clarify what you are doing here, and why?
>>
>> The lines contained an #if 0 / #endif that hid the label "yyerrlab1:" from 
>> the compiler. When compiling it the compiler complained that in line 1362 
>> "goto yyerrlab1;" used an undefined label. That's also described in the 
>> first line of the .y file.
>> Could handle this differently?
> 
> I don't see that #if 0.  Maybe that was a bug with Bison 3.4.2, but
> with 3.7.4 I do not have that.  Do you really have that problem?
> The user is not expected to edit the generated code, it is expected
> to work out of the box...
> 
> 

-- 
Als wär es nix, leb' ich von [IT] und mach' nur, was ich lieb'
Lebe wie im Paradies, womit hab' ich das verdient?
Die Wahrheit ist: Hab' ich nicht, ich bin nur reicher beschenkt
Als jemand in einem armen Land mit dem gleichen Talent
[frei nach Tua von Die Orsons - Oioioiropa]

Reply via email to