help-bison
[Top][All Lists]
Advanced

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

Re: parenthesis warnings


From: Evan Lavelle
Subject: Re: parenthesis warnings
Date: Thu, 23 Dec 2010 18:31:14 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 17 Dec 2010, at 17:08, Gergely Feldhoffer wrote:

Thank you, we upgraded bison from latest debian 2.4.1 to 2.4.3, and it
works just fine.

I just had this problem on the default Ubuntu 10.10 installation (gcc 4.4.5, bison 2.4.1). Anyone who wants to stay on 2.4.1 needs to edit the location.cc skeleton file to add the extra parentheses. In my case, this file is in /usr/share/bison. The source for the code at position.hh:136 is at line 120 in location.cc; just add parentheses around the 2 expressions on either side of the '||'.

I was surprised to see this in my grammars, though, since I don't use %locations. Should the position/location code be generated if it's not required?

-Evan



reply via email to

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