* attribs.c (decl_attributes): Check for TYPE_DECL before switching to
using the TREE_TYPE.
===================================================================
*************** decl_attributes (tree *node, tree attrib
the decl's type in place here. */
if (spec->type_required && DECL_P (*anode))
{
- anode = &TREE_TYPE (*anode);
/* Allow ATTR_FLAG_TYPE_IN_PLACE for the type's naming decl. */
if (!(TREE_CODE (*anode) == TYPE_DECL
&& *anode == TYPE_NAME (TYPE_MAIN_VARIANT
(TREE_TYPE (*anode)))))
flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE;
}
if (spec->function_type_required && TREE_CODE (*anode) != FUNCTION_TYPE
the decl's type in place here. */
if (spec->type_required && DECL_P (*anode))
{
/* Allow ATTR_FLAG_TYPE_IN_PLACE for the type's naming decl. */
if (!(TREE_CODE (*anode) == TYPE_DECL
&& *anode == TYPE_NAME (TYPE_MAIN_VARIANT
(TREE_TYPE (*anode)))))
flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE;
+ anode = &TREE_TYPE (*anode);
}
if (spec->function_type_required && TREE_CODE (*anode) != FUNCTION_TYPE