This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, Fortran] Fix PR 82886 - ICE with -finit-derived in gfc_conv_expr
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Fritz Reese <fritzoreese at gmail dot com>
- Cc: fortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 10 Nov 2017 15:40:39 -0800
- Subject: Re: [PATCH, Fortran] Fix PR 82886 - ICE with -finit-derived in gfc_conv_expr
- Authentication-results: sourceware.org; auth=none
- References: <CAE4aFAniXDndX3T7JceVkgs14Dnfj46h=5=u4+dH=A7pKSQHNQ@mail.gmail.com> <CAE4aFAkZn25ERjt1r83p=Ye9Qn2v2DA7EXNDEMzL10W+GMXpXg@mail.gmail.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Fri, Nov 10, 2017 at 04:35:56PM -0500, Fritz Reese wrote:
> My mistake, the patch file should not have the random changes to
> libiberty/functions.texi. Not sure how that ended up there.
> >
> > PR fortran/82886
> > gcc/fortran/
> > * gfortran.h (gfc_build_init_expr): New prototype.
> > * invoke.texi (finit-derived): Update documentation.
> > * expr.c (gfc_build_init_expr): New, from gfc_build_default_init_expr.
> > (gfc_build_default_init_expr): Redirect to gfc_build_init_expr(,,false)
> > (component_initializer): Force building initializers using
> > gfc_build_init_expr(,,true).
> >
> > PR fortran/82886
> > * gcc/testsuite/gfortran.dg/init_flag_16.f03: New testcase.
Patch looks good to me. Thanks for the patch.
PS: can you look at the patch I posted yesterday about a kludge.
--
Steve