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-7087] Chaining simple calculations make a too-complex error by the compiler or REPL #49635

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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7087
Radar None
Original Reporter mshibanami (JIRA User)
Type Bug

Attachment: Download

Environment

$swift --version
Apple Swift version 4.1 (swiftlang-902.0.38 clang-902.0.30)
Target: x86_64-apple-darwin17.4.0

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Performance, TypeChecker
Assignee @xedin
Priority Medium

md5: b6131e9d1dd61e2a8934a8d225450e18

Issue Description:

The following expression makes "expression was too complex to be solved in reasonable time" error by REPL or Compiler:

(Optional(1) ?? 1) * 1 * 1 * 1 * 1 * 1 * 1

It looks "Optional(1) ?? 1" part causes this problem.

I don't think this is a expected behavior.So I opened this issue.

See also the attached screen capture.

@belkadan
Copy link
Contributor

Seems in line with some of the others we have. Thanks! @xedin

@xedin
Copy link
Member

xedin commented Feb 27, 2018

Indeed operator chaining is currently a weak spot, but we are working on improving it!

@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 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants