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

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

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

commit r12-10631-gecc80e18f05b77a773c6d894871572029d4fc579
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jul 18 21:15:48 2024 +0200

    Fortran: character array constructor with >= 4 constant elements [PR103115]

    gcc/fortran/ChangeLog:

            PR fortran/103115
            * trans-array.cc (gfc_trans_array_constructor_value): If the first
            element of an array constructor is deferred-length character and
            therefore does not have an element size known at compile time, do
            not try to collect subsequent constant elements into a constructor
            for optimization.

    gcc/testsuite/ChangeLog:

            PR fortran/103115
            * gfortran.dg/string_array_constructor_4.f90: New test.

    (cherry picked from commit c93be1606ecf8e0f65b96b67aa023fb456ceb3a3)

Reply via email to