On Oct 5, 2010, at 5:03 PM, jahanian wrote:

> 
> On Oct 5, 2010, at 4:52 PM, John McCall wrote:

I misspoke. gcc issues warning only when typeof returns a type which is 
deprecated but
not on a type which is built from a deprecated type (such as pointer or array 
type).
> 
>> 
>> There are a lot of subsidiary questions here, like whether we should warn in 
>> the following test cases:
>> deprecated_type *a; typeof(*a) b;  // we now warn about this
>> deprecated_type *a; typeof(a) b;  // but not about this

clang matches gcc's behavior here.
>> deprecated_typedef a; typeof(a) b;  // or this

clang need match gcc's behavior and issues warning here.

- fariborz




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

Reply via email to