Skip to content

Passing Parameter Pack Between Methods Crashes the Compiler #83194

@thecoolwinter

Description

@thecoolwinter

Description

When trying to pass a parameter pack from one method to a second with a similar definition, the compiler crashes.

Reproduction

public protocol MyProtocol: Sendable, CustomDebugStringConvertible { }

public final actor MyActor {
    var condition: Bool = false

    func startConditionally<each MyType: MyProtocol>(_ types: (repeat each MyType)) async throws {
        guard condition else { return }
        try await start(types)
    }

    func start<each MyType: MyProtocol>(_ types: (repeat each MyType)) async throws {
        for type in repeat each types {
            print(type.debugDescription)
        }
    }
}

Stack dump

Showing All Messages
SwiftCompile normal arm64 Compiling\ AnchorClient.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift (in target 'Anchor' from project 'Anchor')

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/Khan/Desktop/Anchor/Sources/Anchor/Clocks/HybridLogicalClock.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Clocks/VectorClock.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/HashFunction+combine.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/TaskGroup+addTasks.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/wallClockTime.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Macros/Syncable.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/LWWRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/MapRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/MergableRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/SetRegister.swift -primary-file /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorCollection.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorDocument.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorIdType.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/Channel.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/StableHashable.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/Constants.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/Resources.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncError.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncInitiator.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncReceiver.swift -emit-dependencies-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.d -emit-const-values-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.swiftconstvalues -emit-reference-dependencies-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.swiftdeps -serialize-diagnostics-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.dia -target arm64-apple-macos10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -I /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/Khan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 6 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/AnchorMacros#AnchorMacros -const-gather-protocols-file /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/Anchor_const_extract_protocols.json -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -validate-clang-modules-once -clang-build-session-file /Users/Khan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/Khan/Desktop/Anchor/.swiftpm/xcode -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/Khan/Desktop/Anchor/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/Khan/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx15.5-24F74-8254517eb8b97d462ccbc072ba9094c9.sdkstatcache -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/swift-overrides.hmap -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/include -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources-normal/arm64 -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources/arm64 -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -module-name Anchor -package-name anchor -frontend-parseable-output -disable-clang-spi -target-sdk-version 15.5 -target-sdk-name macosx15.5 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.o -index-unit-output-path /Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.o -index-store-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Index.noindex/DataStore -index-system-modules
1.	Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift")
4.	While silgen emitFunction SIL function "@$s6Anchor7MyActorC18startConditionallyyyxxQp_t_tYaKRvzAA0B8ProtocolRzlF".
 for 'startConditionally(_:)' (at /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift:17:5)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x00000001071c2e24 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x00000001071c0c5c llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x00000001071c3460 SignalHandler(int) + 360
3  libsystem_platform.dylib 0x0000000181c02de4 _sigtramp + 56
4  swift-frontend           0x0000000101b33df4 swift::Lowering::SILGenFunction::getScopeOrNull(swift::SILLocation, bool) + 128
5  swift-frontend           0x0000000101b33df4 swift::Lowering::SILGenFunction::getScopeOrNull(swift::SILLocation, bool) + 128
6  swift-frontend           0x0000000101abe1f0 swift::Lowering::SILGenBuilder::getSILDebugLocation(swift::SILLocation, bool) + 92
7  swift-frontend           0x00000001016eeca8 swift::SILBuilder::createAllocStack(swift::SILLocation, swift::SILType, std::__1::optional<swift::SILDebugVariable>, swift::HasDynamicLifetime_t, swift::IsLexical_t, swift::IsFromVarDecl_t, swift::UsesMoveableValueDebugInfo_t, bool) + 168
8  swift-frontend           0x0000000101b05480 swift::Lowering::SILGenFunction::emitTemporaryAllocation(swift::SILLocation, swift::SILType, swift::HasDynamicLifetime_t, swift::IsLexical_t, swift::IsFromVarDecl_t, bool) + 236
9  swift-frontend           0x0000000101aa3788 (anonymous namespace)::ArgEmitter::emitPackArg(llvm::MutableArrayRef<swift::Lowering::ArgumentSource>, swift::Lowering::AbstractionPattern) + 3392
10 swift-frontend           0x0000000101aa2978 void llvm::function_ref<void (swift::Lowering::TupleElementGenerator&)>::callback_fn<(anonymous namespace)::ArgEmitter::emitExpanded(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern)::'lambda'(swift::Lowering::TupleElementGenerator&)>(long, swift::Lowering::TupleElementGenerator&) + 356
11 swift-frontend           0x0000000101879034 swift::Lowering::AbstractionPattern::forEachTupleElement(swift::CanType, llvm::function_ref<void (swift::Lowering::TupleElementGenerator&)>) const + 184
12 swift-frontend           0x0000000101aa1520 (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern, std::__1::optional<swift::AnyFunctionType::Param>) + 3488
13 swift-frontend           0x0000000101a8f064 (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern, std::__1::optional<swift::AnyFunctionType::Param>) + 204
14 swift-frontend           0x0000000101aa0484 (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 252
15 swift-frontend           0x0000000101aac678 (anonymous namespace)::CallSite::emit(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, (anonymous namespace)::ParamLowering&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::SmallVectorImpl<(anonymous namespace)::DelayedArgument>&, swift::ForeignInfo const&) && + 660
16 swift-frontend           0x0000000101aac0b0 (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, swift::ForeignInfo const&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, std::__1::optional<swift::SILLocation>&) + 1040
17 swift-frontend           0x0000000101a93b68 (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 1072
18 swift-frontend           0x0000000101a92544 swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 3204
19 swift-frontend           0x0000000101b082c4 swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) + 996
20 swift-frontend           0x0000000101bbd1c8 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 6432
21 swift-frontend           0x0000000101b38b84 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 496
22 swift-frontend           0x0000000101a7d24c swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 7596
23 swift-frontend           0x0000000101a7e278 swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 232
24 swift-frontend           0x0000000101a7b454 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 344
25 swift-frontend           0x0000000101bd5fd0 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) + 32
26 swift-frontend           0x0000000101bd27c8 (anonymous namespace)::SILGenType::emitType() + 364
27 swift-frontend           0x0000000101a7b098 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 100
28 swift-frontend           0x0000000101a81ce0 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 1568
29 swift-frontend           0x0000000101bbaf50 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 208
30 swift-frontend           0x0000000101a8686c swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 728
31 swift-frontend           0x0000000101014064 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 968
32 swift-frontend           0x0000000101017654 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1764
33 swift-frontend           0x0000000101015fd8 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3716
34 swift-frontend           0x0000000100f9a0bc swift::mainEntry(int, char const**) + 5428
35 dyld                     0x000000018184c274 start + 2840
Failed frontend command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/Khan/Desktop/Anchor/Sources/Anchor/Clocks/HybridLogicalClock.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Clocks/VectorClock.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/HashFunction+combine.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/TaskGroup+addTasks.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Extensions/wallClockTime.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Macros/Syncable.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/LWWRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/MapRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/MergableRegister.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Registers/SetRegister.swift -primary-file /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorCollection.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorDocument.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorIdType.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/Channel.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/StableHashable.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/Constants.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/Resources.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncError.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncInitiator.swift /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/SyncProtocol/SyncReceiver.swift -emit-dependencies-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.d -emit-const-values-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.swiftconstvalues -emit-reference-dependencies-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.swiftdeps -serialize-diagnostics-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.dia -target arm64-apple-macos10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -I /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/PackageFrameworks -F /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/Khan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 6 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/AnchorMacros\#AnchorMacros -const-gather-protocols-file /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/Anchor_const_extract_protocols.json -enable-experimental-feature StrictConcurrency\=complete -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -validate-clang-modules-once -clang-build-session-file /Users/Khan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/Khan/Desktop/Anchor/.swiftpm/xcode -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/Khan/Desktop/Anchor/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/Khan/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx15.5-24F74-8254517eb8b97d462ccbc072ba9094c9.sdkstatcache -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/swift-overrides.hmap -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Products/Debug/include -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources-normal/arm64 -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources/arm64 -Xcc -I/Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name Anchor -package-name anchor -frontend-parseable-output -disable-clang-spi -target-sdk-version 15.5 -target-sdk-name macosx15.5 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Build/Intermediates.noindex/Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.o -index-unit-output-path /Anchor.build/Debug/Anchor.build/Objects-normal/arm64/AnchorClient.o -index-store-path /Users/Khan/Library/Developer/Xcode/DerivedData/Anchor-agspgilgqpcgjyfggvwvpyhmebpq/Index.noindex/DataStore -index-system-modules

SwiftCompile normal arm64 /Users/Khan/Desktop/Anchor/Sources/Anchor/Replication/AnchorClient.swift (in target 'Anchor' from project 'Anchor')
    cd /Users/Khan/Desktop/Anchor/.swiftpm/xcode
    

Command SwiftCompile failed with a nonzero exit code

Command SwiftCompile failed with a nonzero exit code

Expected behavior

Doesn't crash, allows me to use the first method as a passthrough method.

Environment

Apple Swift version 6.1.2 (swift-6.1.2-RELEASE)
Target: arm64-apple-macosx15.0

Additional information

This isn't specific to actors or classes, in fact the methods can be stand-alone and the compiler will still crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SILGenArea → compiler: The SIL generation stagebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareparameter packsFeature → generics: Parameter packs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions