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-7310] Xcode 9.3 fails to compile complex expressions (too complex) #49858

Open
swift-ci opened this issue Mar 30, 2018 · 3 comments
Open
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression standard library Area: Standard library umbrella swift 4.1 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7310
Radar None
Original Reporter Thieme (JIRA User)
Type Bug

Attachment: Download

Environment

macOS 10.13.4

Xcode 9.3

Additional Detail from JIRA
Votes 0
Component/s Compiler, Standard Library
Labels Bug, 4.1Regression, TypeChecker
Assignee @xedin
Priority Medium

md5: 77ad85e7a0279c1678bd39d5a39797cc

Issue Description:

While the attached code fragment compiles fine in Xcode 9.2, compilation using Xcode 9.3 fails with the message:

expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions

Example:

if df2 > 8.0 {
{{ result.kurtosis = 3.0 + (12 * (pow(df2 - 2,2.0) * (df2 - 4) + df1 * (df1 + df2 - 2.0) * (5.0 * df2 - 22))) / (df1 * (df2 - 6) * (df2 - 8) * (df1 + df2 - 2))}}
{{}}}

@swift-ci
Copy link
Collaborator Author

Comment by Volker Thieme (JIRA)

Compilation fails even in playground.

@belkadan
Copy link
Contributor

belkadan commented Apr 3, 2018

cc @rudkx, @xedin

@xedin
Copy link
Member

xedin commented Apr 3, 2018

Thanks for the report, Thieme (JIRA User)! We are working on trying to fix performance issues related to operator chaining.

@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 regression standard library Area: Standard library umbrella swift 4.1 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants