]> gcc.gnu.org Git - gcc.git/commit
Fortran:Fix simplification of constructors with implied-do [PR98458]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 8 Jan 2021 10:11:00 +0000 (10:11 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 8 Jan 2021 10:11:00 +0000 (10:11 +0000)
commitc231fca5de8e455b263495b20a416a5e47d1029a
tree4b588ebaee3de6b4c9bd2a5b7f051c60e5f97c0a
parent01d92cfd79872e4cffc78bf233bb9b767336beb8
Fortran:Fix simplification of constructors with implied-do [PR98458]

2021-01-08  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/98458
* simplify.c (is_constant_array_expr): If an array constructor
expression has elements other than constants or structures, try
fixing the expression with gfc_reduce_init_expr. Also, if shape
is NULL, obtain the array size and set it.

gcc/testsuite/
PR fortran/98458
* gfortran.dg/implied_do_3.f90 : New test.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/implied_do_3.f90 [new file with mode: 0644]
This page took 0.075046 seconds and 5 git commands to generate.