Skip to content

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
@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.

4 participants