Fortran: Fix rank of assumed-rank array [PR99043]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 12 Feb 2021 13:43:41 +0000 (14:43 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 12 Feb 2021 13:43:41 +0000 (14:43 +0100)
commitf699e0b16578cdc1be8b90691ef8b0964af32d2f
treebff8b9e827100b7fe3a7a6f05c6edb9951776969
parent6cc886bf4279461b8931c4ca544185a85cd69f26
Fortran: Fix rank of assumed-rank array [PR99043]

gcc/fortran/ChangeLog:

PR fortran/99043
* trans-expr.c (gfc_conv_procedure_call): Don't reset
rank of assumed-rank array.

gcc/testsuite/ChangeLog:

PR fortran/99043
* gfortran.dg/assumed_rank_20.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/assumed_rank_20.f90 [new file with mode: 0644]