On Nov 17, 2008, at 12:55 PM, Fariborz Jahanian wrote:

> We used to need this for objc'gc; as in:
>
> % cat test.m
> id p;
>
> int main()
> {
>       (__strong id)p = 0;
> }
>
> But, having said that, I recently introduced warning for this kind of
> lvalue-casts in gcc:
>
> % mygccpw -fobjc-gc -c test.m
> test.m: In function 'main':
> test.m:5: warning: target of assignment not really an lvalue; this
> will be a hard error in the future
>
> And I have not heard of any project failures. So, it should be OK for
> clang.

Yep, we decided to warn strongly about this in GCC and reject it in  
clang.  Thanks Fariborz,

-Chris

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to