Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - uninitialized yyval! #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dand-oss
Copy link

@dand-oss dand-oss commented Jul 2, 2021

yyval uninitialized used without init.

@turboencabulator
Copy link
Owner

Thanks @dand-oss. This is effectively making a default action of { $$ = 0; } for all empty rules, correct?

I checked what bison does for this case, it appears to do { $$ = $0; } instead (by adding the equivalent of else yyval = yyvsp[0];). I have not yet checked what bisonc++ does. So I'm hesitant to add something that makes it differ from other flavors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants