https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104819

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #56519|0                           |1
        is obsolete|                            |

--- Comment #4 from anlauf at gcc dot gnu.org ---
Created attachment 56546
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56546&action=edit
Second version of a patch

This patch contains a revised checking of NULL() as actual argument
which should be consistent with F2008+ for allocatables.

It also fixes the cases where NULL(x) is passed to an assumed-rank
dummy, but only for scalar x so far.

I might need some assistance in how to produce a proper descriptor to pass
for rank > 0.  (I added a gfc_internal_error (TODO) for the allocatable case.)

Regtests essentially fine, but requires fixing these invalid testcases:

! gfortran.dg/assumed_rank_8.f90
! gfortran.dg/assumed_rank_9.f90
! gfortran.dg/assumed_rank_10.f90
! gfortran.dg/pr101329.f90

Reply via email to