SendNonSendable Crash: "constructing SILType with type that should have been eliminated by SIL lowering" #78439
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
concurrency
Feature: umbrella label for concurrency language features
crash
Bug: A crash, i.e., an abnormal termination of software
SIL
Description
The Swift compiler crashes during the SendNonSendable SIL pass. The crash seems to be caused by constructing a SILType with a type that should have been eliminated by SIL lowering.
Reproduction
Compile the following Swift code with
-swift-version 5 -enable-upcoming-feature StrictConcurrency
and the latest Swift Development snapshot (swift-DEVELOPMENT-SNAPSHOT-2025-01-03
):Stack dump
First version with Development snapshot(
swift-DEVELOPMENT-SNAPSHOT-2025-01-03
):Stack dump
Second version with local build to make better stack trace:
Stack dump
Expected behavior
The compiler should either accept the code or reject it with a proper error message. It should not crash with an assertion failure.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: