[Top][All Lists]

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

Bison C++ mid-rule value lost with variants

From: Piotr Marcińczyk
Subject: Bison C++ mid-rule value lost with variants
Date: Thu, 29 Jun 2017 15:55:06 +0200

I supposedly found a bug in lalr1.cc skeleton with variant semantic type.
When using mid-rule action { $<type>$ = value; } to return a value that
will be used in further semantic actions, it appears that the value on
stack becomes zero. Tested with Bison version 3.0.4.

Link to a minimal working example:

Link to StackOverflow question about it:

​Best regards,

Piotr Marcińczyk

reply via email to

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