[cfe-commits] r43995 - in /cfe/trunk: AST/Decl.cpp Driver/RewriteTest.cpp Parse/ParseObjc.cpp Parse/Parser.cpp Sema/Sema.h Sema/SemaDecl.cpp include/clang/AST/DeclObjC.h include/clang/Parse/Action.h include/clang/Parse/Parser.h test/Sema/mes

This fixes a very large number of the erroneous errors in my ObjC
code. By far the largest category of remaining errors is that field
names are not known in instance method implementations:

CookieJar:~/Desktop keith$ cat > test.m
@interface Foo
{
    int i;
}
- (void)foo;
@end
@implementation Foo
- (void)foo
{
    i = 3;
}
@end
CookieJar:~/Desktop keith$ gcc -Wall -W -fsyntax-only test.m
CookieJar:~/Desktop keith$ clang -fsyntax-only test.m
test.m:10:5: error: use of undeclared identifier 'i'
    i = 3;
    ^
1 diagnostic generated.

I assume this is known :wink:

-Keith