diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2024-10-27 12:40:42 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2024-10-27 12:40:54 +0000 |
commit | ed8ca972f8857869d2bb4a416994bb896eb1c34e (patch) | |
tree | e6ff2943bb09972cb7782ce4417e6f6b88f442bc /gcc/tree-ssa-phiopt.cc | |
parent | 6ad29a858bac7cf9e765925cf5f6945e20f085be (diff) | |
download | gcc-ed8ca972f8857869d2bb4a416994bb896eb1c34e.zip gcc-ed8ca972f8857869d2bb4a416994bb896eb1c34e.tar.gz gcc-ed8ca972f8857869d2bb4a416994bb896eb1c34e.tar.bz2 |
Fortran: Fix regressions with intent(out) class[PR115070, PR115348].
2024-10-27 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/115070
PR fortran/115348
* trans-expr.cc (gfc_trans_class_init_assign): If all the
components of the default initializer are null for a scalar,
build an empty statement to prevent prior declarations from
disappearing.
gcc/testsuite/
PR fortran/115070
* gfortran.dg/pr115070.f90: New test.
PR fortran/115348
* gfortran.dg/pr115348.f90: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions