[PATCH] fortran: Statically initialize length of SAVEd character arrays

Jerry D jvdelisle2@gmail.com
Wed Jun 18 21:22:41 GMT 2025


On 6/18/25 2:02 PM, Mikael Morin wrote:
> From: Mikael Morin <mikael@gcc.gnu.org>
> 
>   Regression-tested on x86_64-pc-linux-gnu.
>   OK for master?
> 
Was there a PR for this? or something you just ran into?

Not a problem either way, just curious.

It looks OK to me. OK for master.

Jerry

>   -- >8 --
> 
> gcc/fortran/ChangeLog:
> 
> 	* trans-array.cc (gfc_trans_deferred_array): Statically
> 	initialize deferred length variable for SAVEd character arrays.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gfortran.dg/save_alloc_character_1.f90: New test.


More information about the Fortran mailing list