[patch, fortran] Fix PR 72714, ICE on invalid
Thomas Koenig
tkoenig@netcologne.de
Sun Mar 3 09:45:00 GMT 2019
Hello world,
the attached patch fixes a 7/8/9 regression by rejecting an invalid
expression in coarray allocation that led to an ICE. It also adds a few
more checks.
One point that is checked for is that, unlike normal arrays, coarrays
cannot be empty.
Regression-tested. OK for trunk and affected branches?
Regards
Thomas
2019-03-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/72714
* resolve.c (resolve_allocate_expr): Add some tests for
coarrays.
2019-03-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/72714
* gfortran.dg/coarray_allocate_11.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 1833 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190303/7a49ff13/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray_allocate_11.f90
Type: text/x-fortran
Size: 833 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190303/7a49ff13/attachment-0001.bin>
More information about the Fortran
mailing list