Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[6.2] Fix argument index calculations for isolated default arguments #81377

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

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented May 8, 2025

main PR: #81370
Explanation: The calculation of argument indices for isolated default arguments has a bug which is, fortunately, hidden by a second bug unless isolated default arguments are interleaved with other arguments, such as if an intermediate argument is provided explicitly by the call or meets the narrow conditions for being recognized as non-isolated.
Scope: affects the code path for all calls with isolated default arguments
Risk: Low: the survival of this bug until now suggests that existing code does not heavily exercise it
Testing: regression testing, new patch
Issue: rdar://150060837
Reviewer: Doug Gregor

@rjmccall rjmccall requested a review from a team as a code owner May 8, 2025 17:44
@rjmccall
Copy link
Contributor Author

rjmccall commented May 8, 2025

@swift-ci Please test

@rjmccall rjmccall merged commit 3ffc1f9 into swiftlang:release/6.2 May 9, 2025
5 checks passed
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