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-2223] Exit code 1 when making UIControlState conform to Hashable #44830

Closed
swift-ci opened this issue Jul 30, 2016 · 0 comments
Closed

[SR-2223] Exit code 1 when making UIControlState conform to Hashable #44830

swift-ci opened this issue Jul 30, 2016 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software optimized only Flag: An issue whose reproduction requires optimized compilation

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-2223
Radar None
Original Reporter diegosanchezr (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Optimization level: -O
Xcode/compiler versions.

  • Xcode 7.3.1

  • Xcode 8.0 b3 (8S174q): both swift 2.2 and swift 3

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, OptimizedOnly
Assignee None
Priority Medium

md5: c29fc4dd08740e10b49d5eefd274db61

duplicates:

  • SR-2167 Segfault when extending C-enum with Hashable w/o implementing hashValue

Issue Description:

File1.swift

import UIKit

public func createButtonImages() -> [UIControlState: UIImage] {
    return [:]
}

File2.swift

import UIKit

extension UIControlState: Hashable {
    public var hashValue: Int {
        return Int(self.rawValue)
    }
}

Result:
Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 crash Bug: A crash, i.e., an abnormal termination of software optimized only Flag: An issue whose reproduction requires optimized compilation
Projects
None yet
Development

No branches or pull requests

2 participants