This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80766] [7/8 Regression] [OOP] ICE with type-bound procedure returning an array
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 May 2017 18:06:19 +0000
- Subject: [Bug fortran/80766] [7/8 Regression] [OOP] ICE with type-bound procedure returning an array
- Auto-submitted: auto-generated
- References: <bug-80766-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80766
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to janus from comment #8)
> (In reply to janus from comment #5)
> > This rather simple patch fixes the ICE on trunk:
> >
> > Index: gcc/fortran/resolve.c
> > ===================================================================
> > --- gcc/fortran/resolve.c (revision 247818)
> > +++ gcc/fortran/resolve.c (working copy)
> > @@ -13833,6 +13833,9 @@ resolve_fl_derived (gfc_symbol *sym)
> > gcc_assert (vtab);
> > vptr->ts.u.derived = vtab->ts.u.derived;
> > }
> > +
> > + if (!resolve_fl_derived0 (vptr->ts.u.derived))
> > + return false;
> > }
> >
> > if (!resolve_fl_derived0 (sym))
>
> This shows one ICE in the testsuite:
>
> FAIL: gfortran.dg/typebound_proc_32.f90 -O (internal compiler error)
Is this before or after submission of patch to list?