-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Fixed inline assembly external identifier access. #11741
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
Conversation
|
I haven't thought the change through entirely, but what happens for ? |
|
This is weird, I thought I had tests in this PR... |
|
Ah, the tests are here: https://github.com/ethereum/solidity/pull/11735/files |
bc06e1a to
67a5cd8
Compare
|
Added two tests. Changelog not necessary since it only fixes an issue with the sol yul code gen. |
67a5cd8 to
a4c94a1
Compare
| } | ||
| } | ||
| // ---- | ||
| // DeclarationError 6578: (123-124): Cannot access local Solidity variables from inside an inline assembly function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's of course a bit weird... but if we make the -> x a proper shadowing error later on, I guess it's fine for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, this is not a new error.
|
Removed "fixes #11380 (maybe)" because I think it does not. |
Fixes #11734