[PATCH, PR fortran/95503] [9/10/11 Regression] ICE in gfc_is_simply_contiguous, at fortran/expr.c:5844
Harald Anlauf
anlauf@gmx.de
Thu Jun 4 18:47:38 GMT 2020
The following patch fixes an almost obvious ICE in invalid.
Regtested on x86_64-pc-linux-gnu.
OK for master, and backports to 9/10?
Thanks,
Harald
PR fortran/95503 - ICE in gfc_is_simply_contiguous, at fortran/expr.c:5844
The check for assigning a pointer that cannot be determined to be simply
contiguous at compile time to a contiguous pointer does not need to be
invoked if the lhs of the assignment is known to have conflicting attributes.
2020-06-04 Harald Anlauf <anlauf@gmx.de>
gcc/fortran/
PR fortran/95503
* expr.c (gfc_check_pointer_assign): Skip contiguity check of rhs
of pointer assignment if lhs cannot be simply contiguous.
gcc/testsuite/
PR fortran/95503
* gfortran.dg/pr95503.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr95503.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20200604/44fff8a2/attachment.bin>
More information about the Fortran
mailing list