[cfe-dev] @synchronized

Fariborz Jahanian fjahanian at apple.com
Wed Jan 16 17:40:15 PST 2008


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
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list