You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Swift 5 - swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-18
Swift 4.2.1 - Xcode 10.1
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug, CompilerCrash
Assignee
None
Priority
Medium
md5: 5fd2a93f448c3abced4efaa73416b634
cloned from:
SR-9711 Swift 5 fails to inline closures across module boundaries
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.
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.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Swift 5 - swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-18
Swift 4.2.1 - Xcode 10.1
Additional Detail from JIRA
md5: 5fd2a93f448c3abced4efaa73416b634
cloned 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
The text was updated successfully, but these errors were encountered: