Skip to content

[SR-6541] Swift Compiler Fills Memory Until Computer Crashes #49091

@Frizlab

Description

@Frizlab
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:

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

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwaretype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions