The compiler crashes when actor
has borrowing func
that contains nested @Sendable func
involving self
.
#78967
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
The code below induces a compiler crash with the message:
swift-DEVELOPMENT-SNAPSHOT-2025-01-10-a
: "Assertion failed: (!ActorIso), function emitUsingCoroutineAccessor, file SILGenLValue.cpp"Swift 6.0.3
: "Unhandled SIL Instruction: hop_to_executor %5 : $MyValue // id: %11"(Needless to say, the code is just a reproducer which is non-sense and probably invalid.)
Reproduction
Stack dump
swift-DEVELOPMENT-SNAPSHOT-2025-01-10-a
Swift 6.0.3
Expected behavior
The compiler emits a warning or an error. (Or compiles successfully?)
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: