Skip to content

Conversation

@Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Dec 15, 2025

Explanation: Checking whether an Enum can be exported to C++ included checking whether all the enum cases are exportable. When one of these cases refer to the original enum we got into an infinte recursion. This PR adds a cache that is also used to cut the recursion in these cases.
Issues: rdar://164153038
Original PRs: #85980
Risk: Low, this only adds a cache.
Testing: Added a compiler test.
Reviewers: @egorzhdan @j-hui @susmonteiro

Explanation: Checking whether an Enum can be exported to C++ included
checking whether all the enum cases are exportable. When one of these
cases refer to the original enum we got into an infinte recursion. This
PR adds a cache that is also used to cut the recursion in these cases.
Issues: rdar://164153038
Original PRs: swiftlang#85980
Risk: Low, this only adds a cache.
Testing: Added a compiler test.
Reviewers: @egorzhdan @j-hui @susmonteiro
@Xazax-hun Xazax-hun requested a review from a team as a code owner December 15, 2025 13:20
@Xazax-hun Xazax-hun added c++ interop Feature: Interoperability with C++ swift 6.3 🍒 release cherry pick Flag: Release branch cherry picks labels Dec 15, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun
Copy link
Contributor Author

@swift-ci please test Windows

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++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants