Open dmcyk opened 5 years ago
cc aschwaighofer@apple.com (JIRA User) could this be maybe related to https://github.com/apple/swift/pull/21933 ?
guess that PR isn't direct cause of it. I tried also snapshot from 01-05 and got same assertion crash
We probably should have underscored thin
a long time ago, but it's a little late now. @slavapestov, @jckarter, this look familiar?
We should still underscore it because it hasn't worked and doesn't work. You can't use @convention(thin)
unless you're a compiler engineer. Chances are good that you'd hit this exact same assertion, or a different assertion, in an asserts build of Swift 4.2, but because Xcode doesn't ship Swift with assertions enabled, it's instead quietly miscompiling.
I see. if that's known, expected then its fine for me if you want to close this ticket. I only run into it trying to investigate SR-9711.
@jckarter since, as you said, this isn't meant to be used, should I close this ticket?
Environment
Swift 5 - swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-18 Swift 4.2.1 - Xcode 10.1Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash | |Assignee | None | |Priority | Medium | md5: 5fd2a93f448c3abced4efaa73416b634cloned from:
Issue Description:
Problem
There seems to be regression in Swift 5, where the compiler fails to recognise `thin` closure and crashes with failed assertion.
Whereas same code in Swift 4.2.1 compiles.
Code
Given module foo:
and our client module:
Compilation
Client module compilation output
Swift 4.2
Swift 5