Skip to content

[SR-4059] Compiler Crash on Subclasses Further Constraining Generics Initializer #46642

@swift-ci

Description

@swift-ci
Previous ID SR-4059
Radar None
Original Reporter Logan (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 3.1Regression, CompilerCrash
Assignee None
Priority Medium

md5: 918fe3645f29300276cb0a409197574f

Issue Description:

Not sure if that title is the ticket, but here's repro. Runs and builds fine on 3.0.2, crash seg fault on 3.1:

    class Base {
        init<S: Sequence>(_ s: S) where S.Iterator.Element == UInt8 {

        }
    }

    class Sub: Base {
        init(_ b: [UInt8]) {
            super.init(b)
        }
    }

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 software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions