Skip to content
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

[SR-11939] Using an invalid @autoclosure parameter crashes in CSApply #54359

Closed
theblixguy opened this issue Dec 10, 2019 · 2 comments
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression swift 5.2 type checker Area → compiler: Semantic analysis

Comments

@theblixguy
Copy link
Collaborator

Previous ID SR-11939
Radar rdar://problem/57888481
Original Reporter @theblixguy
Type Bug
Status Resolved
Resolution Done
Environment

Swift version 5.2-dev (Swift 32e1fb1ef5)
Target: x86_64-apple-darwin19.0.0

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.2Regression, CompilerCrash, TypeChecker
Assignee @theblixguy
Priority Medium

md5: 314e21e2e559e86f35d5e38d4636ceaf

Issue Description:

Reproducer:

func foo(_ closure: @autoclosure () -> String...) // gets diagnosed
foo("A") // but crashes here (although it shouldn't)
Unhandled coercion
UNREACHABLE executed at /Users/suyashsrijan/Documents/swift-src/swift/lib/Sema/CSApply.cpp:6286!

This is a regression, because it didn't use to crash in Swift 5.1 or before.

@beccadax
Copy link
Contributor

@swift-ci create

@theblixguy
Copy link
Collaborator Author

Fixed by #28822

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software regression swift 5.2 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants