]> gcc.gnu.org Git - gcc.git/commit
Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029, PR100040]
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Sun, 25 Sep 2022 20:48:55 +0000 (22:48 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 8 Oct 2022 18:45:10 +0000 (20:45 +0200)
commit1167c14d598021581e984cbe46273ade4bc54126
treee8c696f8d21a473bc87fe8850d43d24704a0c0ae
parentf5bc58603975cc207aea9d258aae70b920f951ad
Fortran: Fix ICE and wrong code for assumed-rank arrays [PR100029, PR100040]

gcc/fortran/ChangeLog:

PR fortran/100040
PR fortran/100029
* trans-expr.c (gfc_conv_class_to_class): Add code to have
assumed-rank arrays recognized as full arrays and fix the type
of the array assignment.
(gfc_conv_procedure_call): Change order of code blocks such that
the free of ALLOCATABLE dummy arguments with INTENT(OUT) occurs
first.

gcc/testsuite/ChangeLog:

PR fortran/100029
* gfortran.dg/PR100029.f90: New test.

PR fortran/100040
* gfortran.dg/PR100040.f90: New test.

(cherry picked from commit 5299155bb80e90df822e1eebc9f9a0c8e4505a46)
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/PR100029.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/PR100040.f90 [new file with mode: 0644]
This page took 0.062439 seconds and 5 git commands to generate.