-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Internal compiler error on storage pointer casts and assignments. #4948
Comments
Related, but not entirely a duplicate: #4901. |
Same for:
|
#4901 is fixed in PR 4904. I do not know why Chriseth stoped respond on the PR for more than 5 days. |
This issue looks interesting. The conversion looks valid since the base type is exactly the same. |
The type analysis for type conversion actually will always convert array pointer to array ref since array inherits from ReferenceType. Therefore, the target type will be a reference, instead of a pointer which makes the assertion to be violated. |
Something here is very wrong. In |
@chriseth Actually, the array pointer is modified to reference before checking if it is possible to convert. |
The following crashes with "InternalCompilerError: Invalid conversion to storage type." for 0.4.24 and develop.
The same for base types other than
uint
.Found during #4911.
The text was updated successfully, but these errors were encountered: