https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109788
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- On the IPA side I'd go with at least 2023-05-09 Jakub Jelinek <ja...@redhat.com> PR fortran/109788 * ipa-prop.cc (ipa_get_callee_param_type): Don't return TREE_VALUE (t) if t is void_list_node. --- gcc/ipa-prop.cc.jj 2023-05-01 09:59:46.485296735 +0200 +++ gcc/ipa-prop.cc 2023-05-09 15:07:44.975578250 +0200 @@ -2147,7 +2147,7 @@ ipa_get_callee_param_type (struct cgraph break; t = TREE_CHAIN (t); } - if (t) + if (t && t != void_list_node) return TREE_VALUE (t); if (!e->callee) return NULL;