]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR fortran/93671; ICE in reffing coarray alloc. comps.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 13 Aug 2020 14:06:31 +0000 (16:06 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 13 Aug 2020 14:06:31 +0000 (16:06 +0200)
commite00464a5cb4214f5a5de4535de4f684a86aa10d5
treeb0300f52509913d2d954ece6c56ff9448c92777c
parentdb4615380832d3d3751a70ecdf6fe6c9fe3c4f69
Fix PR fortran/93671; ICE in reffing coarray alloc. comps.

Fix an ICE when in a coarray an allocatable component had another allocatable
component.

gcc/fortran/ChangeLog:

2020-08-10  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/93671
* trans-array.c (structure_alloc_comps): Keep caf-mode when applying to
components; get the caf_token correctly for allocated scalar components.

gcc/testsuite/ChangeLog:

2020-08-10  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/93671
* gfortran.dg/coarray/pr93671.f90: New test.
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/coarray/pr93671.f90 [new file with mode: 0644]