Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10229] TypeCheck error: Compiler is unable to type check this expression in reasonable time #52629

Open
swift-ci opened this issue Mar 29, 2019 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself performance regression swift 5.0 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10229
Radar None
Original Reporter gcampos (JIRA User)
Type Bug
Environment

MacOS

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.0Regression, Performance, TypeChecker
Assignee None
Priority Medium

md5: 75e1ad8611675120f730a733cc525897

Issue Description:

On swift 5.0

This code doesn't compile due to error "Compiler is unable to type check this expression in reasonable time"

import Foundation


let padding: CGFloat = 1
let stroke: CGFloat = 15
let origin: CGFloat = 2
let handleViewHeight: CGFloat = 1


_ = CGPoint(x: 1, y: (origin + (padding + handleViewHeight/2 + stroke/2))/1.75)

But on swift 4.2 compiles without any problem.

@belkadan
Copy link
Contributor

@xedin, another "reasonable time" regression for you.

@gregomni
Copy link
Collaborator

gregomni commented Aug 3, 2019

No problems with Xcode 11.0b5.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself performance regression swift 5.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants