Skip to content

[SR-10161] compiler is unable to type-check this expression in reasonable time #52563

@an0

Description

@an0
mannequin
Previous ID SR-10161
Radar None
Original Reporter @an0
Type Bug
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 5.0Regression, TypeChecker
Assignee None
Priority Medium

md5: b4414020ec7c32c7070fbbbb2ababd19

Issue Description:

This is a regression in Swift 5. It compiles fine with Swift 4.2.1.

let a = 0
let b = 0
let c = 0
// error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
[(-b + c) / (2 * a), (-b - c) / (2 * a)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfregressionswift 5.0type checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions