Parameter pack compilation crash "This isn't an lvalue" with 6.0.3 OSS toolchain but works with Xcode toolchain #79870
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
When attempting to build the parameter pack code in Reproduction, the Swift 6.0.3 OSS toolchain (
~/Library/Developer/Toolchains/swift-6.0.3-RELEASE.xctoolchain/usr/bin/swift build)
crashes, but the Swift 6.0.3 toolchain bundled with Xcode 16.2 (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift build
) builds fine.Likely related to #78693 and #78671.
This was reported on our Slack (https://skiptools.slack.com/archives/C07MLMD57ST/p1741494643312329) when building for Android, which uses the OSS host toolchain.
Reproduction
Stack dump
Expected behavior
The OSS toolchain should compile the code without crashing just like the Xcode toolchain does.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: