https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92721
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- I suspect the ICE is caused by handle_access_attribute() modifying the attributes of the passed-in function type. This is done because the attribute is internally represented in a condensed form to speed up processing. I can't think of a way to avoid it except to revert the internal representation to the original (uncondensed) form.