Skip to content

🍒 [6.0][cxx-interop] Do not export enums with indirect associated values #76213

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

Explanation: Indirect enum cases can trigger infinite recursion. This PR stops attempting to export them to C++.
Scope: C++ reverse interop.
Risk: Low, we skip the problematic pattern.
Testing: Regression test added.
Issue: rdar://134852756
Reviewer: @egorzhdan
Original PR: #76167

Explanation: Indirect enum cases can trigger infinite recursion. This PR
stops attempting to export them to C++.
Scope: C++ reverse interop.
Risk: Low, we skip the problematic pattern.
Testing: Regression test added.
Issue: rdar://134852756
Reviewer: @egorzhdan
Original PR: #76167
@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:40
@Xazax-hun Xazax-hun requested a review from a team as a code owner September 2, 2024 14:40
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun Xazax-hun merged commit d966414 into release/6.0 Sep 3, 2024
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/indirect-enum-case-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.

2 participants