-
Notifications
You must be signed in to change notification settings - Fork 979
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]: Ternary expression lifting breaks tuple assignments #2025
Labels
bug
Something isn't working
Comments
This can be fixed by modifying the ternary lifting code:
|
0xalpharush
added
bug
Something isn't working
and removed
bug-candidate
Bugs reports that are not yet confirmed
labels
Jul 6, 2023
0xalpharush
changed the title
[Bug-Candidate]: Ternary expression lifting breaks tuple assignments
[Bug]: Ternary expression lifting breaks tuple assignments
Jul 6, 2023
Would you submit a PR please? |
Sure, I submitted a PR here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
The following source code:
generates the following IR:
The IR assigns the variable
a
of typeuint256
to a tuple variable. Instead,a
should store the projection (unpacking) of tuple element 0.Code example to reproduce the issue:
contract Test {
}
Version:
0.9.5
Relevant log output:
The text was updated successfully, but these errors were encountered: