Skip to content

🍒[6.0][cxx-interop] Do not attempt to export read accessors to C++ #76212

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

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Sep 2, 2024

Explanation: The reverse interop code assumed that there is always a get accessor for subscript which is not always the case. This PR prevents the crash by not exporting subscript when get accessor is not available.
Scope: C++ reverse interop.
Risk: Low, we just skip problematic operators.
Testing: Regression test added.
Issue: rdar://134425834
Reviewer: @egorzhdan
Original PR: #76170

The reverse interop code assumed that there is always a get accessor for
subscript which is not always the case. This PR prevents the crash by
not exporting subscript when get accessor is not availableA.
Scope: C++ reverse interop.
Risk: Low, we just skip problematic operators.
Testing: Regression test added.
Issue: rdar://134425834
Reviewer: @egorzhdan
Original PR: #76170
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Sep 2, 2024
@Xazax-hun Xazax-hun requested a review from egorzhdan September 2, 2024 14:34
@Xazax-hun Xazax-hun requested a review from a team as a code owner September 2, 2024 14:34
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun Xazax-hun merged commit d395c5d into release/6.0 Sep 3, 2024
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/read-accessor-6.0 branch September 3, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants