Skip to content

Conversation

@slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Apr 4, 2024

6.0 cherry-pick of key bits of #72847

  • Description: Fix infinite recursion in opaque type substitution when parameter packs are present, and a crash when opaque return type witnessed by variadic generic type with conditional conformance.

  • Reviewed by: @hborla

  • Risk: Low

  • Radar: rdar://123645784, rdar://125668798

@slavapestov slavapestov requested a review from a team as a code owner April 4, 2024 21:50
@slavapestov slavapestov force-pushed the fix-variadic-opaque-6.0 branch from 6016887 to 5ea91ad Compare April 4, 2024 23:37
The names of the private witness table accessor thunks we generate for
an opaque return type mangle the concrete conformance of the underlying
type.

If a conformance requirement of the opaque return type was witnessed by
a conditional conformance of a variadic generic type, we would crash
because of an unimplemented case in the mangler.

Fixes rdar://problem/125668798.
…ePackExpansionLevel

Fixes rdar://problem/123645784.
@slavapestov slavapestov force-pushed the fix-variadic-opaque-6.0 branch from 5ea91ad to 8f713a9 Compare April 5, 2024 00:20
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit de1b0f4 into swiftlang:release/6.0 Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants