https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119669
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 61066 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61066&action=edit Patch which sets the function attribute This should fix the issue. I am actually not quite sure if the new error message about function/subroutine confusion is reachable or not, but I figured better an error than an ICE.