Skip to content

[cxx-interop] Fix crash in ASTMangler triggered by UsingShadowDecls #82144

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
Jun 10, 2025

Conversation

Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Jun 10, 2025

We did not handle this declaration kind. This PR makes sure we mangle it the same way we do for the target declaration.

Fixes #82108.

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jun 10, 2025
@Xazax-hun Xazax-hun force-pushed the gaborh/using-shadow-decl-mangling branch from b5fc135 to 72d3c9c Compare June 10, 2025 14:43
We did not handle this declaration kind. This PR introduces makes sure
we mangle it the same way we do for the target declaration.

Fixes #82108.
@Xazax-hun Xazax-hun force-pushed the gaborh/using-shadow-decl-mangling branch from 72d3c9c to 059051c Compare June 10, 2025 14:51
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun enabled auto-merge June 10, 2025 17:13
@Xazax-hun Xazax-hun merged commit 7c5888c into main Jun 10, 2025
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/using-shadow-decl-mangling branch June 10, 2025 19:40
Xazax-hun added a commit that referenced this pull request Jun 11, 2025
Explanation: We did not handle this declaration kind. This PR makes sure we
mangle it the same way we do for the target declaration.
Issue: rdar://152841420
Risk: Low, the fix is small, localized, and straightforward.
Testing: Regression test added.
Original PR: #82144
Reviewer: @egorzhdan @hnrklssn @j-hui
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.

[cxxinterop] UNREACHABLE in AstMangler when mangling C++ type imported via global using declaration
4 participants