Skip to content

[Generic environment] Only substitute top-level archetypes. #8840

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
Apr 18, 2017

Conversation

DougGregor
Copy link
Member

The core substitution routine for the archetypes-to-interface types
substitution was attempting to provide mappings for nested archetypes,
when in fact these archetypes would (1) always be resolvable via their
parent, and (2) could in fact cause infinite recursion, as with the
new test case. Fixes SR-4617 / rdar://problem/31673819.

The core substitution routine for the archetypes-to-interface types
substitution was attempting to provide mappings for nested archetypes,
when in fact these archetypes would (1) always be resolvable via their
parent, and (2) could in fact cause infinite recursion, as with the
new test case. Fixes SR-4617 / rdar://problem/31673819.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor DougGregor requested a review from swiftix April 18, 2017 20:32
Copy link
Contributor

@swiftix swiftix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! In addition to the provided test-case, it fixes an infinite recursion when the extended version of the partial specialization is enabled.

@swift-ci swift-ci merged commit 0006d8e into swiftlang:master Apr 18, 2017
@DougGregor DougGregor deleted the generic-env-circularity branch April 18, 2017 21:18
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.

4 participants