[PATCH] PR fortran/93834 - [9/10/11/12 Regression] ICE in trans_caf_is_present, at fortran/trans-intrinsic.c:8469

Harald Anlauf anlauf@gmx.de
Tue Aug 24 20:36:18 GMT 2021

Dear Fortranners,

here's a pretty obvious one: we didn't properly check the arguments
for intrinsics when these had to be ALLOCATABLE and in the case that
argument was a coarray object.  Simple solution: just reuse a check
that was used for pointer etc.

Regtested on x86_64-pc-linux-gnu.  OK for mainline / backports?


Fortran - extend allocatable_check to coarrays


	PR fortran/93834
	* check.c (allocatable_check): A coindexed array element is not an
	allocatable object.


	PR fortran/93834
	* gfortran.dg/coarray_allocated.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr93834.patch
Type: text/x-patch
Size: 999 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210824/522f8935/attachment-0001.bin>

More information about the Gcc-patches mailing list