On 05/11/2015 09:28 AM, Jan Hubicka wrote:
We already discussed earlier that type_in_anonymous_namespace_p is not working on compund types, because these do not have TYPE_STUB_DECL. I thought those are !TYPE_NAME types. What is reason for !TYPE_NAME type with no TYPE_STUB_DECL? Is it always a compound type with typedef name?
Right. Typedef names have no linkage, so they aren't really ODR types; only classes and enums have linkage. Why do you want to check other types?
Jason