re PR fortran/82886 (ICE with -finit-derived in gfc_conv_expr, at fortran/trans-expr...
authorFritz Reese <fritzoreese@gmail.com>
Sat, 11 Nov 2017 00:47:53 +0000 (00:47 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Sat, 11 Nov 2017 00:47:53 +0000 (00:47 +0000)
commit1305135257484958d6c75e6d4a05a3de2541f287
tree24d67784c3f642e15609c713623204c17320ea25
parent2392736c513251f4965378c0ceeb28493473b726
re PR fortran/82886 (ICE with -finit-derived in gfc_conv_expr, at fortran/trans-expr.c:7807)

2017-11-10  Fritz Reese <fritzoreese@gmail.com>

    PR fortran/82886

    gcc/fortran/ChangeLog:

PR fortran/82886
* 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).

    gcc/testsuite/ChangeLog:

PR fortran/82886
* gfortran.dg/init_flag_16.f03: New testcase.

From-SVN: r254648
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/init_flag_16.f03 [new file with mode: 0644]