Avatar
Avatar
Iceman
@swift-6.2.1 protocol P { associatedtype ID var id: ID { get } } protocol P2: P where ID == Int {} func f(_ v: [any P2]) { v.map(\.id) }
signal: aborted (core dumped) with stderr:Assertion failed: (!componentTy->hasTypeParameter()), function emitKeyPathComponentForDecl at SILGenExpr.cpp:4688. (to display assertion configuration options: -Xllvm -assert-help) Stack dump: 0. Program arguments: /usr/bin/swift-frontend -frontend -interpret - -Xllvm -aarch64-use-tbi -disable-objc-interop -no-color-diagnostics -Xcc -fno-color-diagnostics -empty-abi-descriptor -no-auto-bridging-header-chaining -module-name main -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins 1. Swift version 6.2 (swift-6.2-RELEASE) 2. Compiling with effective version 5.10 3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for module main) 4. While silgen emitFunction SIL function "@$s4main1fyySayAA2P2_pGF". for 'f(_:)' (at <stdin>:6:1) #0 0x0000c3917a5a6820 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x6b36820) #1 0x0000c3917a5a4820 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x6b34820) #2 0x0000c3917a5a6f34 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0 #3 0x0000ee04206b78f8 (linux-vdso.so.1+0x8f8) #4 0x0000ee041e6c7608 (/lib/aarch64-linux-gnu/libc.so.6+0x87608) #5 0x0000ee041e67cb3c raise (/lib/aarch64-linux-gnu/libc.so.6+0x3cb3c) #6 0x0000ee041e667e00 abort (/lib/aarch64-linux-gnu/libc.so.6+0x27e00) #7 0x0000c39175f2248c ASSERT_help() (/usr/bin/swift-frontend+0x24b248c) #8 0x0000c39174c51814 swift::Lowering::SILGenModule::emitKeyPathComponentForDecl(swift::SILLocation, swift::GenericEnvironment*, swift::ResilienceExpansion, unsigned int&, bool&, swift::SubstitutionMap, swift::ValueDecl*, llvm::ArrayRef<swift::ProtocolConformanceRef>, swift::CanType, swift::DeclContext*, bool, bool) crtstuff.c:0:0 #9 0x0000c39174c67ad4 (anonymous namespace)::RValueEmitter::visitKeyPathExpr(swift::KeyPathExpr*, swift::Lowering::SGFContext) SILGenExpr.cpp
9.08 KB