https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114827

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Harald Anlauf
<anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:a5046235509caa10a4dc309ca0a8e67892b27750

commit r14-10191-ga5046235509caa10a4dc309ca0a8e67892b27750
Author: Harald Anlauf <anl...@gmx.de>
Date:   Mon Apr 29 19:52:52 2024 +0200

    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.

    (cherry picked from commit 21e7aa5f3ea44ca2fef8deb8788edffc04901b5c)

Reply via email to