On Thu, 18 Sep 2025, David Faust wrote:

> So, I think I would change the above to (tests/documentation accordingly):
> 
>  if (TREE_CODE (*node) == FUNCTION_TYPE || TREE_CODE (*node) == METHOD_TYPE)
>    {
>      warning (OPT_Wattributes,
>               "%qE attribute does not apply to functions", name);
>      *no_add_attrs = true;
>      return NULL_TREE;
>    }
> 
> What do you think?  Is this an acceptable approach?

I think removing the laxity to apply this attribute in the wrong place is 
reasonable.

-- 
Joseph S. Myers
[email protected]

Reply via email to