diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2024-05-13 07:27:20 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2024-07-19 22:00:50 +0100 |
commit | d15664f71c150a1b0e6cc07c0534b356b111344d (patch) | |
tree | ce37060dfbf738a2aaecdfd2e22494613adb8faa /libstdc++-v3/src | |
parent | 5034af8223c0db07cdec01cef70048ec44cdd47b (diff) | |
download | gcc-releases/gcc-14.zip gcc-releases/gcc-14.tar.gz gcc-releases/gcc-14.tar.bz2 |
Fortran: Fix wrong code in unlimited polymorphic assignment [PR113363]releases/gcc-14
2024-05-13 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/113363
* trans-array.cc (gfc_array_init_size): Use the expr3 dtype so
that the correct element size is used.
* trans-expr.cc (gfc_conv_procedure_call): Remove restriction
that ss and ss->loop be present for the finalization of class
array function results.
(trans_class_assignment): Use free and malloc, rather than
realloc, for character expressions assigned to unlimited poly
entities.
* trans-stmt.cc (gfc_trans_allocate): Build a correct rhs for
the assignment of an unlimited polymorphic 'source'.
gcc/testsuite/
PR fortran/113363
* gfortran.dg/pr113363.f90: New test.
(cherry picked from commit 2d0eeb529d400e61197a09c56011be976dd81ef0)
Diffstat (limited to 'libstdc++-v3/src')
0 files changed, 0 insertions, 0 deletions