[Bug fortran/87907] ICE in resolve_contained_fntype, at fortran/resolve.c:587
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Tue Jun 18 18:34:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87907
--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Tue, Jun 18, 2019 at 06:20:06PM +0000, kargl at gcc dot gnu.org wrote:
> This patch
>
> Index: gcc/fortran/resolve.c
> ===================================================================
> --- gcc/fortran/resolve.c (revision 272432)
> +++ gcc/fortran/resolve.c (working copy)
> @@ -583,6 +583,9 @@ resolve_contained_fntype (gfc_symbol *sym, gfc_namespa
> || sym->attr.entry_master)
> return;
>
> + if (!sym->result)
> + return;
> +
> /* Try to find out of what the return type is. */
> if (sym->result->ts.type == BT_UNKNOWN && sym->result->ts.interface == NULL)
> {
>
Passes regression testing. I'll pack this later today.
More information about the Gcc-bugs
mailing list