"Global is external, but doesn't have external or weak linkage!" crash from 6.0 variadic type #75405
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
parameter packs
Feature → generics: Parameter packs
Reproduction
I am seeing this crash while using the workaround from #74609. Here are my current steps to repro:
Repeater
variadic type in one file:Repeater
extension in a different file:This leads to a compiler crash. I see the compiler crash when
FnBox
isfileprivate
orprivate
.There seem to be (at least) three workarounds:
elements
tuple directly as a parameter pack of closures without theFnBox
helper:This is suboptimal. The reason I want the workaround from #74609 is because of a compiler crash from 5.10.
Declare the
Repeater
extension in the same file. This might not be an available option for my use-case.Declare the
FnBox
helper to beinternal
:Stack dump
Environment
swift-driver version: 1.111.2 Apple Swift version 6.0 (swiftlang-6.0.0.5.15 clang-1600.0.22.6)
Target: arm64-apple-macosx14.0
The text was updated successfully, but these errors were encountered: