https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69603

--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Harald Anlauf from comment #2)
> Possible fix (for the crash), untested:
> 
> Index: gcc/fortran/interface.c
> ===================================================================
> --- gcc/fortran/interface.c     (revision 234170)
> +++ gcc/fortran/interface.c     (working copy)
> @@ -2006,7 +2006,7 @@
>      }
>  
>    ppc = gfc_get_proc_ptr_comp (actual);
> -  if (ppc)
> +  if (ppc && ppc->ts.interface)
>      {
>        if (!gfc_compare_interfaces (formal, ppc->ts.interface, ppc->name, 0,
> 1,
>                                    err, sizeof(err), NULL, NULL))

The patch regtests ok on i686-pc-linux-gnu.

Reply via email to