https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65908
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Yep, I suppose we want to match both (TREE_TYPE/TYPE_ARG_TYPES and the decls since both control how calls.c produce code and should agree in equivalent functions anyway. I will look into why TREE_TYPE (fntype) and TREE_TYPE (result_decl) disagreees.