[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ‘void free(void*)’ called on unallocated object ‘yyssa’ [-Wfree-nonh
From: |
Akim Demaille |
Subject: |
Re: ‘void free(void*)’ called on unallocated object ‘yyssa’ [-Wfree-nonheap-object] |
Date: |
Wed, 20 Jan 2021 06:14:03 +0100 |
Hi Christoph,
> Le 19 janv. 2021 à 08:27, Christoph Grüninger <foss@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...