]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/attribs.c
PR c/35744
[thirdparty/gcc.git] / gcc / attribs.c
index 767035b5dd10af44b63f7d19e86714170635d1ba..65233de9e55a9f0ac692c395da31f90af45156b4 100644 (file)
@@ -225,6 +225,9 @@ decl_attributes (tree *node, tree attributes, int flags)
   tree a;
   tree returned_attrs = NULL_TREE;
 
+  if (TREE_TYPE (*node) == error_mark_node)
+    return NULL_TREE;
+
   if (!attributes_initialized)
     init_attributes ();