Skip to content

🍒[6.0][cxx-interop] Fix crash trying to export read accesors #77480

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

Closed

Conversation

Xazax-hun
Copy link
Contributor

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

Explanation: The reverse interop code assumed that there is always a synthesized get accessor for public stored properties which is not the case. This PR prevents the crash by not exporting get accessor it is not available.
Scope: C++ reverse interop.
Risk: Low, we just skip problematic operators.
Testing: Regression test added.
Issue: rdar://138944832
Reviewer: @egorzhdan
Original PR: #77391
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Nov 8, 2024
@Xazax-hun Xazax-hun requested a review from egorzhdan November 8, 2024 11:46
@Xazax-hun Xazax-hun requested a review from a team as a code owner November 8, 2024 11:46
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun
Copy link
Contributor Author

@swift-ci please test macos

@Xazax-hun
Copy link
Contributor Author

Closing as this fix is too late for 6.0.x, will be available in 6.1

@Xazax-hun Xazax-hun closed this Nov 11, 2024
@Xazax-hun Xazax-hun deleted the gaborh/avoid-exporting-read-accessors-6.0 branch November 21, 2024 12:12
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.

2 participants