Skip to content

Void-returning @differentiable function crashes compiler #62923

Closed
@hamishknight

Description

@hamishknight

The following crashes in SILGen:

import _Differentiation

func foo(_ fn: @differentiable(reverse) (Float) -> Void) {}

Metadata

Metadata

Assignees

Labels

AutoDiffSILGenArea → compiler: The SIL generation stagebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareswift 5.8type checkerArea → compiler: Semantic analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions