Weakify/Strongify with NSOperationQueue block crashing Swift Compiler

Originator:christian.noon
Number:rdar://22299905 Date Originated:15-Aug-2015 06:11 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7 beta 5
Classification:Serious Bug Reproducible:Always
 
Summary:
The Swift compiler is crashing when attempting to use weakify/strongify inside a function that returns self. The attached project demonstrates the issue clearly.

Steps to Reproduce:
1. Install Xcode 7 beta 5
2. Open the project
3. Attempt to compile it

Expected Results:
The project would compile

Actual Results:
The project does NOT compile

Version:
Xcode 7 beta 5

Notes:


Configuration:


Attachments:
'OperationQueueCompilerCrash.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!