Avatar
Avatar
Iceman
@swift-6.2.1 func f(_ v: [any Identifiable]) { 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 "@$s4main1fyySays12Identifiable_pGF". for 'f(_:)' (at <stdin>:1:1) #0 0x0000b260427a6820 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x6b36820) #1 0x0000b260427a4820 llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x6b34820) #2 0x0000b260427a6f34 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0 #3 0x0000f147f4d1c8f8 (linux-vdso.so.1+0x8f8) #4 0x0000f147f2cc7608 (/lib/aarch64-linux-gnu/libc.so.6+0x87608) #5 0x0000f147f2c7cb3c raise (/lib/aarch64-linux-gnu/libc.so.6+0x3cb3c) #6 0x0000f147f2c67e00 abort (/lib/aarch64-linux-gnu/libc.so.6+0x27e00) #7 0x0000b2603e12248c ASSERT_help() (/usr/bin/swift-frontend+0x24b248c) #8 0x0000b2603ce51814 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 0x0000b2603ce67ad4 (anonymous namespace)::RValueEmitter::visitKeyPathExpr(swift::KeyPathExpr*, swift::Lowering::SGFContext) SILG
9.09 KB