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-7504] Too complex expression involving single UInt64 variable #50046

Open
krzyzanowskim opened this issue Apr 23, 2018 · 1 comment
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself regression swift 4.1 type checker Area → compiler: Semantic analysis

Comments

@krzyzanowskim
Copy link
Contributor

Previous ID SR-7504
Radar None
Original Reporter @krzyzanowskim
Type Bug

Attachment: Download

Environment

Version 9.3 (9E145), Swift 4.1

Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Target: x86_64-apple-darwin17.5.0

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

md5: 7353c2a1a5bb2c072e1887e653bdb177

Issue Description:

This fairly simple calculation is too complex to be solved in Swift 4.1. This is rather a regression as it worked in Swift 4.0

where x is UInt64

var x: UInt64 = ((x >> (6 * 1)) & 0xFF) << (8 * 0) | // Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
        ((x >> (6 * 3)) & 0xFF) << (8 * 1)
return x
@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Apr 26, 2018

cc @rudkx

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

No branches or pull requests

2 participants