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] Variables from dead else-if branch are hoisted to incorrect location #3780

Closed
shrinktofit opened this issue Sep 15, 2020 · 2 comments · Fixed by #3782
Closed

[BUG] Variables from dead else-if branch are hoisted to incorrect location #3780

shrinktofit opened this issue Sep 15, 2020 · 2 comments · Fixed by #3782

Comments

@shrinktofit shrinktofit changed the title [BUG] Hoist variables from dead branch change program semantics [BUG] Hoist variables from dead branch unexpecedtly change program semantics Sep 15, 2020
@shrinktofit shrinktofit changed the title [BUG] Hoist variables from dead branch unexpecedtly change program semantics [BUG] Variables from dead else-if branch are hoisted to incorrect location Sep 15, 2020
@lukastaegert
Copy link
Member

lukastaegert commented Sep 15, 2020

The "incorrect" here is that w is unused, otherwise the code is valid and working?

Edit: Ah sorry, misread the output

@lukastaegert
Copy link
Member

Thanks for spotting, fix at #3782.

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

Successfully merging a pull request may close this issue.

2 participants