-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
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.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaretype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
Previous ID | SR-6541 |
Radar | rdar://problem/35882375 |
Original Reporter | @Frizlab |
Type | Bug |
Status | Resolved |
Resolution | Duplicate |
Environment
Xcode 9.2 (9C40b) on macOS Sierra (16G1036)
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug, CompilerCrash, TypeChecker |
Assignee | None |
Priority | Medium |
md5: 075ba9221f5127653f12eb99d046ec85
duplicates:
- SR-6540 swiftc Crash
Issue Description:
Try and compile the following Swift source:
print("Hello, World!")
struct Container {let string = "yes"
}
let optionalContainer: Container? = Container()
let optionalString: String? = "toto"
switch optionalString {
case optionalContainer?.string?: ()
default: ()
}
The compiler just fills your memory until the computer crashes.
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.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaretype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis