Crash: Variable is not retained in await statement in Release mode. #61658
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
optimized only
Flag: An issue whose reproduction requires optimized compilation
run-time crash
Bug → crash: Swift code crashed during execution
Describe the bug
In Release mode, a variable might not get retained if it's being used in an await statement.
In Debug mode, the crash does not exist.
Steps To Reproduce
Minimal reproduce code:
Expected behavior
The data object shƒould stay valid until after the await statement.
Environment (please fill out the following information)
Additional context
Tested with swiftlang-5.7.1.135.2 clang-1400.0.29.51
Minimal Project to Reproduce
Test.zip
The text was updated successfully, but these errors were encountered: