Repository navigation
Merged
Conversation
…reference, and an untranslated call names its callee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two importer defects found while building the fixture for the linked-list facade shape. No issue was open for either.
1.
f(x)->field = vin an inline C body. Translated asf(x).field = vand refused: "cannot assign to a non-place expression". The pointer a call returns is no place, so the field is now written through its dereference. A named pointer (p->field = v) is unchanged.2. An untranslated call was reported by a number. An inline body with
d = strdup(s)was omitted with "unsupported assignment rhs in goto CFG (kind=103)". It now says: the call ofstrduphas no translation: a system function std.libc does not bind is one such.Tests:
behav_c_import_field_through_call_result(plain and compound assignment, and the read; fails on main),err_c_import_inline_body_calls_unbound_system_function.Evidence at 21a3225:
:native-compile-error-tests,:behavior-tests,:validate-all-tests, pre-checks green; battery green; linux-aarch64 container leg green (:build,:behavior-tests,:native-compile-error-tests);:release-checkssurvey: all targets green.