]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/71066 (ICE in set_loop_bounds, at fortran/trans-array.c:4680)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 23 Feb 2019 11:49:47 +0000 (11:49 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 23 Feb 2019 11:49:47 +0000 (11:49 +0000)
commit4d384d2632811b415d4f793916dc8e0f19fd6959
tree5220a932b4ad278d9c67693aa5a621fd72280f32
parent0c47a0a6e1acecb765de369745a0cf8dd94f28d7
re PR fortran/71066 (ICE in set_loop_bounds, at fortran/trans-array.c:4680)

2019-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

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-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

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

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