Using sending
with parameter packs crashes the compiler
#76306
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
I noticed compiler crashes while writing code in Xcode 16 Beta 6 transferring non-sendable values. I managed to boil it down to the reproduction below.
I brought it up in the Swift Forums and I was told by @slavapestov that
sending
is currently not supported in conjunction with parameter packs. That is good to know, but I think the compiler shouldn't crash, anyways.Please notice, I am aware the code below is not "technically" correct. You can also make the compiler crash by writing the
sending
keywords in different places.Reproduction
Stack dump
Expected behavior
No crashes and ideally future
sending
support by code blocks 😄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-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: