]> gcc.gnu.org Git - gcc.git/commit
Fortran: Add missing TKR initialization to class variables [PR100097, PR100098]
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Tue, 18 Oct 2022 20:29:59 +0000 (22:29 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 29 Oct 2022 20:17:15 +0000 (22:17 +0200)
commit2b20cf18a62842e2659e891b0c607769638e07f9
treedbed1f020568658de60177eaab0f8a0ad9573e78
parentebe47cc6f1567790c5c3a3e8a2293ee248864d7d
Fortran: Add missing TKR initialization to class variables [PR100097, PR100098]

gcc/fortran/ChangeLog:

PR fortran/100097
PR fortran/100098
* trans-array.cc (gfc_trans_class_array): New function to
initialize class descriptor's TKR information.
* trans-array.h (gfc_trans_class_array): Add function prototype.
* trans-decl.cc (gfc_trans_deferred_vars): Add calls to the new
function for both pointers and allocatables.

gcc/testsuite/ChangeLog:

PR fortran/100097
PR fortran/100098
* gfortran.dg/PR100097.f90: New test.
* gfortran.dg/PR100098.f90: New test.

(cherry picked from commit 4cfdaeb2755121ac1069f09898def56469b0fb51)
gcc/fortran/trans-array.cc
gcc/fortran/trans-array.h
gcc/fortran/trans-decl.cc
gcc/testsuite/gfortran.dg/PR100097.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/PR100098.f90 [new file with mode: 0644]
This page took 0.065265 seconds and 5 git commands to generate.