[Bug c++/83322] [8 Regression] r255469 causes: ICE: tree check: expected class ‘type’, have ‘exceptional’ (baselink) in diag_attr_exclusions, at attribs.c:393
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 8 09:23:00 GMT 2017
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);
}
?
More information about the Gcc-bugs
mailing list