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-622] SIL verification failed on reduce for CollectionType #43239

Closed
swift-ci opened this issue Jan 26, 2016 · 1 comment
Closed

[SR-622] SIL verification failed on reduce for CollectionType #43239

swift-ci opened this issue Jan 26, 2016 · 1 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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-622
Radar None
Original Reporter dturnbull (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Apple Swift version 3.0-dev (LLVM f95d47afa7, Clang f66c5bb67b, Swift b745691)
January 25, 2016 Snapshot

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

md5: 46e0e2577b19e4e04826e324f60fc6f2

Issue Description:

This code works on Swift 2.1. On 3.0-dev the compiler crashes. The log says: "SIL verification failed: entry point has wrong number of arguments: entry->bbarg_size() == ti->getParameters().size()"

public protocol GLmathType : MutableCollectionType {
    typealias Element
}

// This is ok
public func any<bvec:GLmathType>(x:bvec) -> Bool {
        return x.reduce(false) { $0 || $1 as! Bool }
}

// SIL verification failed: entry point has wrong number of arguments
public func any<bvec:GLmathType where
    bvec.Generator.Element:BooleanType,
    bvec.Element == Bool
    >(x:bvec) -> bvec.Element {
        return x.reduce(false) { $0 || $1 }
}
@swift-ci
Copy link
Collaborator Author

Comment by David Turnbull (JIRA)

No longer reproduces as of February 25 snapshot.

@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
Projects
None yet
Development

No branches or pull requests

2 participants