diff options
author | Harald Anlauf <anlauf@gmx.de> | 2024-04-29 19:52:52 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2024-05-05 20:34:15 +0200 |
commit | 21e7aa5f3ea44ca2fef8deb8788edffc04901b5c (patch) | |
tree | 38f968194bf8e4437a71641e59c296714120b5b8 /gcc/ada | |
parent | affd77d3fe7bfb525b3fb23316d164e847ed02d1 (diff) | |
download | gcc-21e7aa5f3ea44ca2fef8deb8788edffc04901b5c.zip gcc-21e7aa5f3ea44ca2fef8deb8788edffc04901b5c.tar.gz gcc-21e7aa5f3ea44ca2fef8deb8788edffc04901b5c.tar.bz2 |
Fortran: fix issues with class(*) assignment [PR114827]
gcc/fortran/ChangeLog:
PR fortran/114827
* trans-array.cc (gfc_alloc_allocatable_for_assignment): Take into
account _len of unlimited polymorphic entities when calculating
the effective element size for allocation size and array span.
Set _len of lhs to _len of rhs.
* trans-expr.cc (trans_class_assignment): Take into account _len
of unlimited polymorphic entities for allocation size.
gcc/testsuite/ChangeLog:
PR fortran/114827
* gfortran.dg/asan/unlimited_polymorphic_34.f90: New test.
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions