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-5563] Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions #48135

Closed
swift-ci opened this issue Jul 27, 2017 · 4 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 4.0 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-5563
Radar rdar://problem/34583076
Original Reporter fritter1 (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 9.0 beta 4

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 4.0Regression, TypeChecker
Assignee fritter1 (JIRA)
Priority Medium

md5: 21cec6d9a4bea15ef2c649dd3ec0e7a0

Issue Description:

Code compiling in Xcode 8.3.3 does no longer compile with Xcode 9.0 beta 4, see attachment. Error is "Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions"

@belkadan
Copy link
Contributor

cc @rudkx

@slavapestov
Copy link
Member

@swift-ci create

@iby
Copy link

iby commented Sep 28, 2017

I'm getting the same with SwiftyJSON code after upgrading to Swift 4. Swift 3.2 works under the same Xcode version.

let json: JSON? = JSON.parse(response.result.value)
return nil
 ?? json?["error_summary"].string
 ?? json?["error"][".tag"].string
 ?? response.result.value
 ?? response.result.error?.localizedDescription
 ?? "An error occurred while calling Dropbox API, but no details could be retrieved."

Wrapping ­{ response.result.error?.localizedDescription }() in a block hacks this.

@hborla
Copy link
Member

hborla commented Feb 27, 2021

This compiles quickly in Swift 5.4

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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 regression swift 4.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

6 participants