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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
last_decl in this case is a BASELINK, not sure what we can do with those.

Perhaps:
--- gcc/cp/decl2.c      2017-12-07 18:04:58.000000000 +0100
+++ gcc/cp/decl2.c      2017-12-08 10:21:15.573030890 +0100
@@ -1504,6 +1504,8 @@ cplus_decl_attributes (tree *decl, tree
                break;
              }
          }
+      if (last_decl && !DECL_P (*decl))
+       last_decl = NULL_TREE;

       decl_attributes (decl, attributes, flags, last_decl);
     }
?

Reply via email to