Skip to content

[SR-15818] [AutoDiff] Compiler crash for inout @noDerivative closure parameter #58095

Closed
@philipturner

Description

@philipturner
Previous ID SR-15818
Radar None
Original Reporter @philipturner
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 74613197bdf79640c6596a3142e64468

Issue Description:

The following code produces a crash during compilation. It was caught while testing bug fixes brought by #41174 - a pull request which fixes the crash.

import _Differentiation

typealias MyType = @differentiable(reverse) (inout @noDerivative Float, Float) -> Void

@differentiable(reverse)
func myFunc(_ x:  inout @noDerivative Float, _ y: Float) -> Void {}

print(myFunc as MyType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions