http://llvm.org/bugs/show_bug.cgi?id=10519
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs