Compiler crash with multi-argument function containing existential #71035
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
mangling
Area → compiler: Mangling
triage needed
This issue needs more specific labels
Description
I have several other recent bug reports about existentials (#70988, #71000, #71012, #71019). They all fail in unique cases. However, this one appears to crash from a different function in
swift-frontend
, so it could be a different bug entirely.Void
doesn't work here.Reproduction
Stack dump
NOTE: This only appeared to crash within a package—moving the reproduction code to a separate file appeared to compile fine, so likely something I'm doing wrong on my part. Instances of
<FILE>
and<PROJECT>
replace actual file name and package name respectfully. Log fetched from Xcode:Expected behavior
The program should compile without the compiler crashing.
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
Workaround
Removing either of the two function arguments stops the compiler crashing, but obviously changes behaviour.
The text was updated successfully, but these errors were encountered: