[Bug c++/90953] [10 Regression] ICE: tree check: expected identifier_node, have tree_list in is_attribute_p, at attribs.h:155 since r272486

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 21 12:17:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90953

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -7601,13 +7601,13 @@ check_missing_format_attribute (tree ltype, tree rtype)
   tree ra;

   for (ra = TYPE_ATTRIBUTES (ttr); ra; ra = TREE_CHAIN (ra))
-    if (is_attribute_p ("format", TREE_PURPOSE (ra)))
+    if (is_attribute_p ("format", get_attribute_name (ra)))
       break;
   if (ra)
     {
       tree la;
       for (la = TYPE_ATTRIBUTES (ttl); la; la = TREE_CHAIN (la))
-   if (is_attribute_p ("format", TREE_PURPOSE (la)))
+   if (is_attribute_p ("format", get_attribute_name (la)))
      break;
       return !la;
     }


More information about the Gcc-bugs mailing list