Segmentation fault on 2.0.5

Radu Anghel radu.anghel at xindi.ro
Wed Aug 14 08:37:25 CEST 2019


On 13.08.2019 17:45, Maria Jan Matejka wrote:
>>> define myvar = false;
>>>
>>> function something () {
>>>      if myvar then {
>>>          return false;
>>>      }
>>>
>>>      return true;
>>> }
>>>
>>> protocol device DEVICE {
>>>
>>> }
>>>
>>> Could this be because of the new filter code or something else?
>>
>> Hello
>>
>> Thanks for bugreport. Yes, it is the new filter code, most likely
>> it is a bug in handling of statically eliminable (constant-false)
>> if statements without else branch.
>>
>> Similar issue also happens for empty blocks:
>>
>>    if true then { }
>>
> 
> What about the attached patch?
> Maria
> 

Hi,

I can confirm that the patch works for my setup.

Thank you,

Radu


More information about the Bird-users mailing list