diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2024-07-18 08:51:35 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2024-07-18 08:51:35 +0100 |
commit | c3aa339ea50f050caf7ed2e497f5499ec2d7b9cc (patch) | |
tree | ab5ab5533ae4b1fbfb5b55c6ffdb71c8eb215970 /gcc/cp | |
parent | cee56fe0ba757cae17dcc4be216cea88be76e740 (diff) | |
download | gcc-c3aa339ea50f050caf7ed2e497f5499ec2d7b9cc.zip gcc-c3aa339ea50f050caf7ed2e497f5499ec2d7b9cc.tar.gz gcc-c3aa339ea50f050caf7ed2e497f5499ec2d7b9cc.tar.bz2 |
Fortran: Suppress bogus used uninitialized warnings [PR108889].
2024-07-18 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/108889
* gfortran.h: Add bit field 'allocated_in_scope' to gfc_symbol.
* trans-array.cc (gfc_array_allocate): Set 'allocated_in_scope'
after allocation if not a component reference.
(gfc_alloc_allocatable_for_assignment): If 'allocated_in_scope'
not set, not a component ref and not allocated, set the array
bounds and offset to give zero length in all dimensions. Then
set allocated_in_scope.
gcc/testsuite/
PR fortran/108889
* gfortran.dg/pr108889.f90: New test.
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions