-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed as not planned
Closed as not planned
Copy link
Labels
AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Description
| Previous ID | SR-15808 |
| Radar | None |
| Original Reporter | @philipturner |
| Type | Bug |
Attachment: Download
Additional Detail from JIRA
| Votes | 0 |
| Component/s | |
| Labels | Bug |
| Assignee | None |
| Priority | Medium |
md5: a3df518fba66afe2f96d3bbdb0bf649a
Issue Description:
The following code produces a compiler crash during SILGen because it skipped classifying the closure as <<error type>> during AST creation:
import _Differentiation
protocol DifferentiableCollection: Sequence {}
extension DifferentiableCollection {
func differentiableMap(_ body: @differentiable (Void) -> Void) {
fatalError()
}
}While this code, which correctly identifies the closure as <<error type>> during AST creation, does not crash the compiler:
import _Differentiation
protocol DifferentiableCollection: Sequence {}
extension DifferentiableCollection {
func differentiableMap(_ body: @differentiable (Int) -> Void) {
fatalError()
}
}The crash log is attached.
Metadata
Metadata
Assignees
Labels
AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.