Parse/ParseStmt.cpp:/// [OBC] objc-synchronized-statement [TODO]
:)
- fariborz
On Jan 16, 2008, at 5:36 PM, Keith Bauer wrote:
> @synchronized doesn't seem to be supported at all by the ObjC parser:
>
> CookieJar:~ keith$ cat > test.m
> void foo(id o) { @synchronized(o) {} }
> CookieJar:~ keith$ gcc -Wall -W -c test.m
> CookieJar:~ keith$ clang -fsyntax-only test.m
> test.m:1:18: error: unexpected '@' in program
> void foo(id o) { @synchronized(o) {} }
> ^
> test.m:1:38: error: expected ';' after expression
> void foo(id o) { @synchronized(o) {} }
> ^
> Assertion failed: (E && "ActOnExprStmt(): missing expression"),
> function ActOnExprStmt, file SemaStmt.cpp, line 27.
>
> -Keith
> _______________________________________________
> cfe-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev