Compiler crash with isolated default values #77448
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 crash is related to isolated default values, but I don't know what actually triggers it. The smallest repro case I found is given below. Most further simplifications stop triggering the crash.
crashing
avoids the crashcrashing
avoids the crashcrashing
avoids the crashmake()
andBase
nonisolated avoids the crashcallingVar
var to a function appears to avoid the crashIsolatedDefaultValues
or Swift 6 mode is necessary to for the isolated default value ofmake()
. The compiler crashes in either case.Reproduction
Stack dump
Expected behavior
The code should compile.
Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: