[LLVMbugs] [Bug 10519] New: Clang accepts NSAutoreleasePool in ARC mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 28 02:24:14 PDT 2011


           Summary: Clang accepts NSAutoreleasePool in ARC mode
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: csdavec at swan.ac.uk
                CC: llvmbugs at cs.uiuc.edu

@interface NSAutoreleasePool +new; @end

int main(void)
    [NSAutoreleasePool new];
    return 0;

This program compiles in ARC mode, and the ARC migration tool does not flag any
warnings or make any changes.

According to section 7.2 of the ARC spec:

> A program is ill-formed if it refers to the NSAutoreleasePool class.

This code should therefore be rejected as ill formed.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list