[Fortran] Fix ICE with deferred-rank arrays (PR93957)
authorTobias Burnus <tobias@codesourcery.com>
Fri, 27 Mar 2020 11:12:36 +0000 (12:12 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 27 Mar 2020 11:12:36 +0000 (12:12 +0100)
commit62ede14d30f5d083f1ab23bcab6e0e3c9c649006
treecdddcf9998d6109de5b1b6f0571e647bdf3df692
parent8d689cf43b501a2f5c077389adbb6d2bfa530ca9
[Fortran] Fix ICE with deferred-rank arrays (PR93957)

PR fortran/93957
* trans-array.c (gfc_alloc_allocatable_for_assignment): Accept
nonallocatable, nonpointer deferred-rank arrays.

PR fortran/93957
* gfortran.dg/assumed_rank_19.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_rank_19.f90 [new file with mode: 0644]