[cfe-commits] r115713 - in /cfe/trunk: lib/Sema/SemaType.cpp test/Sema/typeof-use-deprecated.c

jahanian fjahanian at apple.com
Tue Oct 5 17:24:04 PDT 2010


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







More information about the cfe-commits mailing list