re PR fortran/91944 (ICE in gfc_conv_array_initializer, at fortran/trans-array.c...
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Nov 2019 10:00:50 +0000 (11:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 27 Nov 2019 10:00:50 +0000 (11:00 +0100)
commitb7b848f5d7984a9984e0a518b75ff91a0de0cb32
tree96855a9fa85e06eb3327be7b2fffe6989e3b7409
parent90ca6847bbd0c7b2debb5a985d7f49e464f68577
re PR fortran/91944 (ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6156)

PR fortran/91944
* simplify.c (gfc_simplify_spread): Check gfc_init_expr_flag instead
of gfc_current_ns->sym_root->n.sym->attr.flavor == FL_PARAMETER.

* gfortran.dg/spread_size_limit_2.f90: New test.

From-SVN: r278762
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/spread_size_limit_2.f90 [new file with mode: 0644]