https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89946
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2019-04-03 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. The ICE first appeared in r250521 when the attribute was added. The handler for the attributes does no validation: static tree handle_patchable_function_entry_attribute (tree *, tree, tree, int, bool *) { /* Nothing to be done here. */ return NULL_TREE; } With struct attribute_spec extended to describe basic properties of attribute arguments besides just their number, basic attribute argument validation could be done in decl_attributes, similarly to how mutually exclusive attributes are handled.