clang seg fault using __nonnull annotating a block

Originator:olof
Number:rdar://21890016 Date Originated:18-Jul-2015
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7 beta 3
Classification: Reproducible:Yes
 
That is, in Xcode, make a new project (CocoaApplication),    paste this into appDelegate.m ,  and then try to compile:


-(void)clangSegFault:(int)n {
    NSSet * set = [NSMutableSet set];
    [set enumerateObjectsUsingBlock: ^__nonnull (__nonnull NSObject* obj, BOOL *stop) {
        [obj description];
        return;
    } ];
 }

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!