re PR fortran/71203 (ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Mar 2019 14:10:17 +0000 (14:10 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Mar 2019 14:10:17 +0000 (14:10 +0000)
commit8ed5ae524ae350a50a82630342ef9578591090a5
tree5378b67d3a528243b31abcd67acffdc1a2766a28
parent3568d2d5fa77f5c8798c1dca46b1f738d2097202
re PR fortran/71203 (ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564)

2019-03-09  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/71203
* decl.c (add_init_expr_to_sym):  Add shape if init has none.  Add
assert that it has to be an EXPR_ARRAY in this case.

2019-03-09  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/71203
* gfortran.dg/array_simplify_3.f90: New test case.

From-SVN: r269526
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_simplify_3.f90 [new file with mode: 0644]