[patch, fortran] Fix part of PR 71066
Thomas Koenig
tkoenig@netcologne.de
Sun Feb 10 11:13:00 GMT 2019
Hello world,
this patch fixes the coarray part of PR 71066 - handling of data
statements for coarrays. The PR itself is marked as a 7/8/9
regression.
Regression-tested. OK for trunk and for backporting?
Regards
Thomas
2019-02-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/71066
* 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-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/71066
* gfortran.dg/coarray_data_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190210/9f9704bc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray_data_1.f90
Type: text/x-fortran
Size: 302 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190210/9f9704bc/attachment-0001.bin>
More information about the Fortran
mailing list