Xcode-6.3 (6D570): Cant pass a closure that captures @noescape parameter to __attribute((noescape))

Originator:segiddins
Number:rdar://20507717 Date Originated:10-Apr-2015 05:52 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-6.3 (6D570)
Classification:Serious Bug Reproducible:Always
 
Summary:
The compiler is overzealous in guarding against doing things with @noescape closures, especially when interfacing with Objective-C.

Steps to Reproduce:
Attempt to compile the attached project

Expected Results:
The project should compile without warnings or errors.

Actual Results:
Compilation fails, with the following (incorrect) error:
closure use of @noescape parameter 'block' may allow it to escape

Regression:
N/A

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!