[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another - Bison 1.35 works but Bison 1.50 Doesn't

From: Tim Van Holder
Subject: Re: Another - Bison 1.35 works but Bison 1.50 Doesn't
Date: 14 Oct 2002 08:57:46 +0200

On Mon, 2002-10-14 at 07:11, Paul Eggert wrote:
> However, my argument is that even the 1.28 warning is unnecessary when
> the left-hand-side type is `' (i.e., unspecified), since the type
> clash doesn't matter in that case, as the right-hand-side value is
> being discarded in this case.  This issue is independent of whether a
> mid-rule action is specified.

OTOH, without the warning, a memory leak is introduced if the semantic
value is dynamically allocated.  With the warning, it can be easily
found & fixed (e.g. by adding code to free that memory).
Admittedly, for non-pointer semantic values, this means that you do
indeed have to write the bison equivalent of a (void) in the grammar.

Tim Van Holder <mailto:address@hidden>
Anubex         <http://www.anubex.com>
Telephone: +32 3 450 42 32              Fax: +32 3 450 42 51

********************Internet Email Confidentiality*********************

Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to such a person), you may not copy or
deliver this message to anyone.  In such a case, you should destroy
this message immediately and kindly notify the sender that you received
this message in error.  Please let us know immediately if you or your
employer do not consent to the use of e-mail for correspondence of this
kind.  Opinions, conclusions and other information in this message that
do not relate to the official business of Anubex shall be understood as
neither given nor endorsed by it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]