]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix rank of assumed-rank array [PR99043]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 12 Feb 2021 15:43:54 +0000 (16:43 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 12 Feb 2021 15:43:54 +0000 (16:43 +0100)
commite3020c62ff30567d0eb59c832a040148068b0c79
treeb2797145ad771734b8767cce849bb091359be188
parent88718208897140e63f10ad81b8a69f01b610bb40
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.

(cherry picked from commit f699e0b16578cdc1be8b90691ef8b0964af32d2f)
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/assumed_rank_20.f90 [new file with mode: 0644]