[SR-706] Swift 2.2 Regression: Using generic parameter as a generic argument in the same clause crashes the compiler #43321
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
regression
swift 2.2
Additional Detail from JIRA
md5: 2ecb400a6d15f5385a8cf70c1d8fcda8
Issue Description:
When using the generic argument of a function as a parameter of another generic class that is used in the signature, the compiler crashes with
Illegal instruction: 4
Example
Interesting crash facts
This used to work with Swift 2.1
This works with the version of Swift that is shipped with Xcode 7.3 beta 2 (7D129n)
It crashes the Swift 2.2 and Swift 3 compiler since the snapshot of 01/11/2016 (that’s the oldest snapshot I have installed)
The code compiles fine with the current master (as of 02/10/2016, commit 073df63) iff
myFunction
is a global function and not a method in a classThe text was updated successfully, but these errors were encountered: