PATCH: Reserve the __attributes__ for member function pointer type
Mark Mitchell
mark@codesourcery.com
Wed Aug 6 19:22:00 GMT 2008
Bo Yang wrote:
> fntype = build_method_type_directly (ctype, TREE_TYPE (fntype),
> (TREE_CODE (fntype) == METHOD_TYPE
> ? TREE_CHAIN (TYPE_ARG_TYPES (fntype))
> : TYPE_ARG_TYPES (fntype)));
> + TYPE_ATTRIBUTES (fntype) = attr;
This is not OK as build_method_type_directly may return an existing
METHOD_TYPE. To fix this, you'll need look at how we handle attributes
on FUNCTION_TYPE and replicate that kind of logic for METHOD_TYPE.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list