[SR-7571] class funcs of classes that inherits from NSObject can't access generics in closures on ARM #50113
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
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Xcode 9.3, various iOS 11.3.x versions on iPhone 6/6S models.
Additional Detail from JIRA
md5: 8abcd5c7821bc4db98eb6c76e7bdb536
Issue Description:
As the title. If you have a class that inherits from
NSObject
and is generic, the generic doesn't work in class functions that have closures that reference it. For example:This code works on my Macbook Pro in a Playground or in the simulator, but on an iPhone 6+ or 6S, it crashes with
EXEC_BAD_ACCESS
, which is my basis for saying that this issue is only on ARM.Note that `C.g` is fine because it does not have a closure in it at all.
The text was updated successfully, but these errors were encountered: