This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, Fortran] Fix PR 82886 - ICE with -finit-derived in gfc_conv_expr


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]