Runtime crash (BAD_ACCESS) when iterating over a generic pack (tuple) and trying to access a property #78598
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
triage needed
This issue needs more specific labels
Description
Some remarks on the program below:
isEmpty
variable access inhmmm
, for both debug and release buildsisEmpty
from a computed property into e.g.let isEmpty = true
will also result in a runtime crash, albeit with a different stack trace (see below)break
statement from thefor _ in repeat each
loop in the initialiser makes everything work finebreak
statement from the for loop inhmmm
still causes it to crash, but at a different place and with a different backtraceEntry
into a struct makes everything work fine.Reproduction
Stack dump
Expected behavior
I see no reason why this should not work.
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx14.0
Additional information
This is the backtrace of the crash of the alternative version (when
isEmpty
islet isEmpty = true
):The text was updated successfully, but these errors were encountered: