[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
 CC||anlauf at gcc dot gnu.org

--- Comment #6 from anlauf at gcc dot gnu.org ---
Fixed.

Thanks for the patch!

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

--- Comment #5 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Harald Anlauf
:

https://gcc.gnu.org/g:f6e4a3b40b69e4f682db2fe49139b17de1b2ef8c

commit r11-10345-gf6e4a3b40b69e4f682db2fe49139b17de1b2ef8c
Author: José Rui Faustino de Sousa 
Date:   Tue Oct 18 22:29:59 2022 +0200

Fortran: Add missing TKR initialization to class variables [PR100097,
PR100098]

gcc/fortran/ChangeLog:

PR fortran/100097
PR fortran/100098
* trans-array.c (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.c (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)

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

--- Comment #4 from CVS Commits  ---
The releases/gcc-12 branch has been updated by Harald Anlauf
:

https://gcc.gnu.org/g:2b20cf18a62842e2659e891b0c607769638e07f9

commit r12-8877-g2b20cf18a62842e2659e891b0c607769638e07f9
Author: José Rui Faustino de Sousa 
Date:   Tue Oct 18 22:29:59 2022 +0200

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)

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Harald Anlauf :

https://gcc.gnu.org/g:4cfdaeb2755121ac1069f09898def56469b0fb51

commit r13-3440-g4cfdaeb2755121ac1069f09898def56469b0fb51
Author: José Rui Faustino de Sousa 
Date:   Tue Oct 18 22:29:59 2022 +0200

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.

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2021-04-16 Thread jrfsousa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

--- Comment #2 from José Rui Faustino de Sousa  ---
Patch posted.

https://gcc.gnu.org/pipermail/fortran/2021-April/055933.html

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2021-04-16 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097

Dominique d'Humieres  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2021-04-16
 Status|UNCONFIRMED |NEW

--- Comment #1 from Dominique d'Humieres  ---
Confirmed.