On 12/13/2011 10:50 AM, Dodji Seketeli wrote:
- if (INTEGRAL_OR_ENUMERATION_TYPE_P (type)) + if (INTEGRAL_OR_ENUMERATION_TYPE_P (type) + && TREE_CODE (expr) != PTRMEM_CST) expr = maybe_constant_value (expr); else if (TYPE_PTR_P (type) || (TYPE_PTR_TO_MEMBER_P (type)
This could still break for a parameter of object pointer type. Let's check for PTRMEM_CST separately, before any of the other tests.
Jason