I have build the simplest possible iPhone program, a window based program. I only changed the testappdelegate.h file to be the following:
#import <UIKit/UIKit.h>
@interface TestAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
int pos[10]10]; //note the error here.
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@end
Note the error in the 'int pos...' line.
When I try to compile this program XCode hangs (showing millions of errors). I am not asking how to fix the line, the fix is obvious.
The problem is that overwhelms XCode and I want to know why?
Update: submitted bug report Bug ID# 8406197
Update2: Sept 24. I got a response from Apple Engineering has provided the following information:
We don't plan to fix this in llvm-gcc or gcc, and it is already fixed in clang. Xcode not freaking out is tracked in a clone of this bug.
We are now closing this bug since our engineers are aware of the issue and will continue to track it offline.