]> gcc.gnu.org Git - gcc.git/commit
Fortran: Fix some select rank issues [PR97694 and 97723].
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Dec 2020 14:59:38 +0000 (14:59 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 27 Dec 2020 14:59:38 +0000 (14:59 +0000)
commitc4a678981572c12d158709ace0d3f23dd04cf217
treecffb9058bee31e22736a501bf2f63f0c2a53f363
parent0e283e2c9f15d8abfd6a57c05d0845f8c4e08827
Fortran: Fix some select rank issues [PR97694 and 97723].

2020-12-27  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/97694
PR fortran/97723
* check.c (allocatable_check): Select rank temporaries are
permitted even though they are treated as associate variables.
* resolve.c (gfc_resolve_code): Break on select rank as well as
select type so that the block os resolved.
* trans-stmt.c (trans_associate_var): Class associate variables
that are optional dummies must use the backend_decl.

gcc/testsuite/
PR fortran/97694
PR fortran/97723
* gfortran.dg/select_rank_5.f90: New test.
gcc/fortran/check.c
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/select_rank_5.f90 [new file with mode: 0644]
This page took 0.076205 seconds and 5 git commands to generate.