Variable used before declaration cause crash in runtime on access, instead compilation error #73535
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
The variable used before declaration cause a crash in runtime on access instead of a compilation error.
Weird: It does not crash when build SwiftPM manifest, but it also does not throw a compilation error, instead ignores the variable value (example by https://gist.github.com/rnapier/1bf7a85eea76dc76fc61ad6aa0808fd2
Reproduction
Stack dump
Expected behavior
compilation error. variable
s
used before declared.Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: