Compiler crash when capturing optional isolated parameter in a closure #73197
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 following snippet crashes the compiler with recent Swift 6.0 development snapshot toolchains.
Did not crash:
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-18-a
Does crash:
swift-6.0-DEVELOPMENT-SNAPSHOT-2024-04-20-a
and newerThe
StrictConcurrency
upcoming feature must be enabled for the crash to occur and I can only reproduce the crash when compiling viaswift-frontend
(as done by Xcode) not when invokingswiftc
.To reproduce, compile the snippet as follows:
<path to toolchain>/usr/bin/swift-frontend -frontend -c -enable-upcoming-feature StrictConcurrency Crash.swift
Reproduction
Stack dump
Expected behavior
The compiler should not crash.
Environment
Apple Swift version 6.0-dev (LLVM 2c365f15bfc9eae, Swift 4e30159)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: