[SR-8748] Inline init crashes in release configuration #51257
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
optimized only
Flag: An issue whose reproduction requires optimized compilation
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Xcode 9.4.1 (9F2000)
Swift 4.1, Release configuration
iPhone X iOS 11.4
Additional Detail from JIRA
md5: eb8edd80a4f3d57f6f5cb37762d08d21
Issue Description:
What I do:
Build code below in Release configuration:
What I expect:
Will print "Success!"
What I receive:
Fatal error: Attempted to read an unowned reference but object was already deallocated.
Possible workarounds:
1) Remove unowned from Bazz.bar property
2) Remove anyField property or chage type of effectView to UIView
3) Remove closure2 from Graph
The text was updated successfully, but these errors were encountered: