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

--- Comment #8 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:c3e16edcf2c8429da2cb479d8941397f4300e0c4

commit r14-10291-gc3e16edcf2c8429da2cb479d8941397f4300e0c4
Author: Harald Anlauf <anl...@gmx.de>
Date:   Mon Jun 3 22:02:06 2024 +0200

    Fortran: fix ALLOCATE with SOURCE=, zero-length character [PR83865]

    gcc/fortran/ChangeLog:

            PR fortran/83865
            * trans-stmt.cc (gfc_trans_allocate): Restrict special case for
            source-expression with zero-length character to rank 0, so that
            the array shape is not discarded.

    gcc/testsuite/ChangeLog:

            PR fortran/83865
            * gfortran.dg/allocate_with_source_32.f90: New test.

    (cherry picked from commit 7f21aee0d4ef95eee7d9f7f42e9a056715836648)

Reply via email to