19.09.12 17:01, Akim Demaille wrote:
> Le 13 sept. 2012 à 17:54, Oleksii Taran a écrit :
>
>> Hello
>>
>> Does Bison guarantees exception safety in C++ parser, i.e. will it make
>> any clean-up and free memory if an exception is thrown on rule action? I
>> know about %destructor directive, but it seems irrelevant, since
>> destructor code is called only if parser recovers from _syntax_ error.
> hi Oleskii,
>
> Sorry for the delays.
>
> Yes, I agree that the current implementation is not satisfying on this
> regard.  IMHO, the %destructors should be called when an exception is
> rised, exactly as if the parsing was ended on a syntax error.  Would that
> match your expectations?  Would you be ready to try patches we might
> submit?
>

Yeah, sure, that would be nice, I can help with testing

-- 
Best regards,
Oleksii Taran


_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to