-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Description
| Previous ID | SR-15441 |
| Radar | None |
| Original Reporter | phil_g (JIRA User) |
| Type | Bug |
Attachment: Download
Environment
ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
swift-driver version: 1.26.18 Apple Swift version 5.5.2 (swiftlang-1300.0.40.106 clang-1300.0.29.21)
Target: arm64-apple-macosx12.0
Additional Detail from JIRA
| Votes | 0 |
| Component/s | |
| Labels | Bug |
| Assignee | None |
| Priority | Medium |
md5: 88742eff364040feb2aaef91ecaec8b5
Issue Description:
I start swift from the command line giving test.swift as parameter.
> swift test.swift
I would expect that the compiler would warn me that 'a' is not initialized.
Instead a "[1] 73957 segmentation fault swift test.swift" happens, a backtrace is dumped.
test.swift:
func foo() {
a.first
}
foo()
let a = [1] Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.