swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.64k stars 10.38k forks source link

Crash when a function has property wrapper parameter with projected value #77613

Open kovdan01 opened 1 week ago

kovdan01 commented 1 week ago

Description

No response

Reproduction

@propertyWrapper
struct Wrapper {
    var wrappedValue: Float
    var projectedValue: Float
    init(wrappedValue: Float) {
        self.wrappedValue = wrappedValue
        self.projectedValue = wrappedValue
    }
}

func simulationWithLoss(@Wrapper input: Float) -> Float {
    return $input
}

Stack dump

swift-frontend: /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3411: void swift::Lowering::LValue::addNonMemberVarComponent(SILGenFunction &, SILLocation, VarDecl *, SubstitutionMap, LValueOptions, SGFAccessKind, AccessStrategy, CanType, std::optional<ActorIsolation>)::NonMemberVarAccessEmitter::emitUsingStorage(LValueTypeData): Assertion `(AccessKind == SGFAccessKind::BorrowedObjectRead || AccessKind == SGFAccessKind::BorrowedAddressRead) && "non-borrow component requires an address base"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.      Program arguments: /path/to/swift/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/bin/swift-frontend -emit-sil /home/kovdan01/wrapper1.swift
1.      Swift version 6.1-dev (LLVM 1f4c018cf20a994, Swift efc8d8ea89c6bd0)
2.      Compiling with effective version 5.10
3.      While evaluating request ASTLoweringRequest(Lowering AST to SIL for module wrapper1)
4.      While silgen emitFunction SIL function "@$s8wrapper118simulationWithLoss5inputS2f_tF".
 for 'simulationWithLoss(input:)' (at /home/kovdan01/wrapper1.swift:11:1)
5.      While silgen emitFunction SIL function "@$s8wrapper118simulationWithLoss5inputS2f_tF6$inputL_Sfvs".
 for setter for $input (at /home/kovdan01/wrapper1.swift:11:34)
 #0 0x000004312ff2aa88 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /path/to/swift/swift/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
 #1 0x000004312ff28bb0 llvm::sys::RunSignalHandlers() /path/to/swift/swift/llvm-project/llvm/lib/Support/Signals.cpp:106:18
 #2 0x000004312ff2b108 SignalHandler(int) /path/to/swift/swift/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
 #3 0x000069e79424c1d0 (/usr/lib/libc.so.6+0x3d1d0)
 #4 0x000069e7942a53f4 __pthread_kill_implementation /usr/src/debug/glibc/glibc/nptl/pthread_kill.c:44:76
 #5 0x000069e79424c120 raise /usr/src/debug/glibc/glibc/signal/../sysdeps/posix/raise.c:27:6
 #6 0x000069e7942334c3 abort /usr/src/debug/glibc/glibc/stdlib/abort.c:81:7
 #7 0x000069e7942333df _nl_load_domain /usr/src/debug/glibc/glibc/intl/loadmsgcat.c:1177:9
 #8 0x000069e794244177 (/usr/lib/libc.so.6+0x35177)
 #9 0x00000431298b5632 (anonymous namespace)::AccessEmitter<swift::Lowering::LValue::addNonMemberVarComponent(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::VarDecl*, swift::SubstitutionMap, swift::Lowering::LValueOptions, swift::Lowering::SGFAccessKind, swift::AccessStrategy, swift::CanType, std::optional<swift::ActorIsolation>)::NonMemberVarAccessEmitter, swift::VarDecl>::emitUsingStrategy(swift::AccessStrategy) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:0:0
#10 0x00000431298b5632 swift::Lowering::LValue::addNonMemberVarComponent(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::VarDecl*, swift::SubstitutionMap, swift::Lowering::LValueOptions, swift::Lowering::SGFAccessKind, swift::AccessStrategy, swift::CanType, std::optional<swift::ActorIsolation>) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3453:11
#11 0x00000431298b68f1 emitLValueForNonMemberVarDecl(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::ConcreteDeclRef, swift::CanType, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions, swift::AccessSemantics, std::optional<swift::ActorIsolation>) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3299:6
#12 0x00000431298b74e4 SILGenLValue::visitDeclRefExpr(swift::DeclRefExpr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3667:10
#13 0x00000431298b3b91 swift::ASTVisitor<SILGenLValue, swift::Lowering::LValue, void, void, void, void, void, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions>::visit(swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) /path/to/swift/swift/swift/include/swift/AST/ExprNodes.def:0:1
#14 0x00000431298b4081 swift::Lowering::AbstractionPattern::getKind() const /path/to/swift/swift/swift/include/swift/SIL/AbstractionPattern.h:444:38
#15 0x00000431298b4081 swift::Lowering::AbstractionPattern::isValid() const /path/to/swift/swift/swift/include/swift/SIL/AbstractionPattern.h:939:12
#16 0x00000431298b4081 visitRecInOut(SILGenLValue&, swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions, swift::Lowering::AbstractionPattern) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:2900:12
#17 0x00000431298b4081 SILGenLValue::visitRec(swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions, swift::Lowering::AbstractionPattern) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3145:12
#18 0x00000431298b9013 SILGenLValue::visitMemberRefExpr(swift::MemberRefExpr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:3941:15
#19 0x00000431298b3cdb swift::ASTVisitor<SILGenLValue, swift::Lowering::LValue, void, void, void, void, void, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions>::visit(swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) /path/to/swift/swift/swift/include/swift/AST/ExprNodes.def:0:3
#20 0x00000431298b349f __gnu_cxx::__normal_iterator<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>> const*, std::vector<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>, std::allocator<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>>>>::__normal_iterator(std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>> const* const&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_iterator.h:1068:20
#21 0x00000431298b349f std::vector<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>, std::allocator<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>>>::end() const /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_vector.h:904:16
#22 0x00000431298b349f std::vector<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>, std::allocator<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>>>::empty() const /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_vector.h:1091:27
#23 0x00000431298b349f std::vector<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>, std::allocator<std::unique_ptr<swift::Lowering::PathComponent, std::default_delete<swift::Lowering::PathComponent>>>>::back() const /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_vector.h:1249:2
#24 0x00000431298b349f swift::Lowering::LValue::getTypeData() const /path/to/swift/swift/swift/lib/SILGen/LValue.h:509:17
#25 0x00000431298b349f swift::Lowering::LValue::getSubstFormalType() const /path/to/swift/swift/swift/lib/SILGen/LValue.h:521:47
#26 0x00000431298b349f swift::Lowering::SILGenFunction::emitLValue(swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) /path/to/swift/swift/swift/lib/SILGen/SILGenLValue.cpp:2883:28
#27 0x000004312987d627 swift::Lowering::ArgumentSource::ArgumentSource(swift::Expr*) /path/to/swift/swift/swift/lib/SILGen/ArgumentSource.h:94:29
#28 0x000004312987d627 emitSimpleAssignment(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::Expr*, swift::Expr*) /path/to/swift/swift/swift/lib/SILGen/SILGenExpr.cpp:5339:33
#29 0x000004312987d627 (anonymous namespace)::RValueEmitter::visitAssignExpr(swift::AssignExpr*, swift::Lowering::SGFContext) /path/to/swift/swift/swift/lib/SILGen/SILGenExpr.cpp:5359:3
#30 0x000004312986bc78 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) /path/to/swift/swift/swift/include/swift/AST/ExprNodes.def:0:1
#31 0x0000043129860173 std::_Vector_base<swift::Lowering::ManagedValue, std::allocator<swift::Lowering::ManagedValue>>::~_Vector_base() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_vector.h:368:24
#32 0x0000043129860173 std::vector<swift::Lowering::ManagedValue, std::allocator<swift::Lowering::ManagedValue>>::~vector() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_vector.h:738:7
#33 0x0000043129860173 swift::Lowering::RValue::~RValue() /path/to/swift/swift/swift/lib/SILGen/RValue.h:73:7
#34 0x0000043129860173 swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) /path/to/swift/swift/swift/lib/SILGen/SILGenExpr.cpp:6963:3
#35 0x000004312991411c (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) /path/to/swift/swift/swift/lib/SILGen/SILGenStmt.cpp:0:11
#36 0x000004312991411c swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) /path/to/swift/swift/swift/include/swift/AST/StmtNodes.def:47:1
#37 0x000004312991233d swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) /path/to/swift/swift/swift/lib/SILGen/SILGenStmt.cpp:216:1
#38 0x000004312988eb02 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) /path/to/swift/swift/swift/lib/SILGen/SILGenFunction.cpp:0:5
#39 0x0000043129803b3d swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:0
#40 0x0000043129805000 swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:0
#41 0x0000043129802092 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:1474:5
#42 0x000004312ac694d9 swift::AbstractStorageDecl::visitExpectedOpaqueAccessors(llvm::function_ref<void (swift::AccessorKind)>) const /path/to/swift/swift/swift/lib/AST/Decl.cpp:3117:7
#43 0x000004312ac6946c swift::AbstractStorageDecl::visitEmittedAccessors(llvm::function_ref<void (swift::AccessorDecl*)>) const /path/to/swift/swift/swift/lib/AST/Decl.cpp:3099:1
#44 0x0000043129807a44 swift::Lowering::SILGenModule::visitEmittedAccessors(swift::AbstractStorageDecl*, llvm::function_ref<void (swift::AccessorDecl*)>) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:1921:1
#45 0x00000431298434ea swift::Lowering::SILGenFunction::visitVarDecl(swift::VarDecl*) /path/to/swift/swift/swift/lib/SILGen/SILGenDecl.cpp:1653:1
#46 0x0000043129912418 (anonymous namespace)::StmtEmitter::visitBraceStmt(swift::BraceStmt*) /path/to/swift/swift/swift/lib/SILGen/SILGenStmt.cpp:305:20
#47 0x0000043129912418 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) /path/to/swift/swift/swift/include/swift/AST/StmtNodes.def:47:1
#48 0x000004312991233d swift::Lowering::SILGenFunction::emitStmt(swift::Stmt*) /path/to/swift/swift/swift/lib/SILGen/SILGenStmt.cpp:216:1
#49 0x000004312988eb02 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) /path/to/swift/swift/swift/lib/SILGen/SILGenFunction.cpp:0:5
#50 0x0000043129803b3d swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:0
#51 0x0000043129805000 swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:0
#52 0x0000043129802092 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:1474:5
#53 0x0000043129808182 swift::Lowering::SILGenModule::visit(swift::Decl*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:15
#54 0x0000043129808182 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:2098:5
#55 0x0000043129808964 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:0:11
#56 0x0000043129911c35 std::_Optional_payload_base<llvm::SmallVector<swift::SymbolSource, 1u>>::_M_reset() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:313:12
#57 0x0000043129911c35 std::_Optional_payload<llvm::SmallVector<swift::SymbolSource, 1u>, false, false, false>::~_Optional_payload() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:437:57
#58 0x0000043129911c35 std::_Optional_base<llvm::SmallVector<swift::SymbolSource, 1u>, false, false>::~_Optional_base() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:508:12
#59 0x0000043129911c35 swift::ASTLoweringDescriptor::~ASTLoweringDescriptor() /path/to/swift/swift/swift/include/swift/AST/SILGenRequests.h:50:8
#60 0x0000043129911c35 std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::callDerived<0ul>(swift::Evaluator&, std::integer_sequence<unsigned long, 0ul>) const /path/to/swift/swift/swift/include/swift/AST/SimpleRequest.h:287:5
#61 0x0000043129911c35 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) /path/to/swift/swift/swift/include/swift/AST/SimpleRequest.h:311:20
#62 0x000004312980db22 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'()) /path/to/swift/swift/swift/include/swift/AST/Evaluator.h:349:14
#63 0x0000043129808f76 std::_Optional_payload_base<llvm::SmallVector<swift::SymbolSource, 1u>>::_M_reset() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:313:12
#64 0x0000043129808f76 std::_Optional_payload<llvm::SmallVector<swift::SymbolSource, 1u>, false, false, false>::~_Optional_payload() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:437:57
#65 0x0000043129808f76 std::_Optional_base<llvm::SmallVector<swift::SymbolSource, 1u>, false, false>::~_Optional_base() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/optional:508:12
#66 0x0000043129808f76 swift::ASTLoweringDescriptor::~ASTLoweringDescriptor() /path/to/swift/swift/swift/include/swift/AST/SILGenRequests.h:50:8
#67 0x0000043129808f76 std::_Head_base<0ul, swift::ASTLoweringDescriptor, false>::~_Head_base() /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/tuple:196:12
#68 0x0000043129808f76 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::~SimpleRequest() /path/to/swift/swift/swift/include/swift/AST/SimpleRequest.h:272:7
#69 0x0000043129808f76 swift::performASTLowering(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) /path/to/swift/swift/swift/lib/SILGen/SILGen.cpp:2247:3
#70 0x000004312904e77c std::_Tuple_impl<0ul, swift::SILModule*, std::default_delete<swift::SILModule>>::_Tuple_impl(std::_Tuple_impl<0ul, swift::SILModule*, std::default_delete<swift::SILModule>>&&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/tuple:326:7
#71 0x000004312904e77c std::tuple<swift::SILModule*, std::default_delete<swift::SILModule>>::tuple(std::tuple<swift::SILModule*, std::default_delete<swift::SILModule>>&&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/tuple:2132:17
#72 0x000004312904e77c std::__uniq_ptr_impl<swift::SILModule, std::default_delete<swift::SILModule>>::__uniq_ptr_impl(std::__uniq_ptr_impl<swift::SILModule, std::default_delete<swift::SILModule>>&&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:179:9
#73 0x000004312904e77c std::__uniq_ptr_data<swift::SILModule, std::default_delete<swift::SILModule>, true, true>::__uniq_ptr_data(std::__uniq_ptr_data<swift::SILModule, std::default_delete<swift::SILModule>, true, true>&&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:236:7
#74 0x000004312904e77c std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>>::unique_ptr(std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>>&&) /sbin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:360:7
#75 0x000004312904e77c swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) /path/to/swift/swift/swift/lib/FrontendTool/FrontendTool.cpp:732:52
#76 0x000004312905eeea withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) /path/to/swift/swift/swift/lib/FrontendTool/FrontendTool.cpp:1155:25
#77 0x0000043129051136 performAction(swift::CompilerInstance&, int&, swift::FrontendObserver*) /path/to/swift/swift/swift/lib/FrontendTool/FrontendTool.cpp:0:12
#78 0x0000043129051136 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) /path/to/swift/swift/swift/lib/FrontendTool/FrontendTool.cpp:1367:19
#79 0x00000431290502e5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) /path/to/swift/swift/swift/lib/FrontendTool/FrontendTool.cpp:2075:19
#80 0x0000043128e14ffe run_driver(llvm::StringRef, llvm::ArrayRef<char const*>, llvm::ArrayRef<char const*>) /path/to/swift/swift/swift/lib/DriverTool/driver.cpp:0:0
#81 0x0000043128e14ffe swift::mainEntry(int, char const**) /path/to/swift/swift/swift/lib/DriverTool/driver.cpp:530:10
#82 0x000069e794234e08 __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#83 0x000069e794234ecc call_init /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:128:20
#84 0x000069e794234ecc __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:347:5
#85 0x0000043128e13fb5 _start (/path/to/swift/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/bin/swift-frontend+0xc9afb5)

Expected behavior

The code should build properly w/o triggering assertion in compiler

Environment

Swift version 6.1-dev

Additional information

No response

kovdan01 commented 1 week ago

Tagging @asl