[Bug fortran/71066] [7/8 Regression] ICE in set_loop_bounds, at fortran/trans-array.c:4680

2019-02-22 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71066

--- Comment #16 from Thomas Koenig  ---
Author: tkoenig
Date: Fri Feb 22 21:02:40 2019
New Revision: 269135

URL: https://gcc.gnu.org/viewcvs?rev=269135=gcc=rev
Log:
2019-02-22  Thomas Koenig  

PR fortran/71066
Backport from trunk
* trans-decl.c (generate_coarray_sym_init):  For an array
constructor in a DATA statement of a coarray variable, set the
rank to 1 to avoid confusion later on.  If the constructor
contains only one value, use that for initiailizig.

2019-02-12  Thomas Koenig  

PR fortran/71066
Backport from trunk
* gfortran.dg/coarray_data_1.f90: New test.


Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/coarray_data_1.f90
Modified:
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/trans-decl.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug fortran/71066] [7/8 Regression] ICE in set_loop_bounds, at fortran/trans-array.c:4680

2019-02-16 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71066

Thomas Koenig  changed:

   What|Removed |Added

Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
   |set_loop_bounds, at |set_loop_bounds, at
   |fortran/trans-array.c:4680  |fortran/trans-array.c:4680

--- Comment #15 from Thomas Koenig  ---
Fixed on trunk so far.