[Bug fortran/103115] [12/13/14/15 Regression] reallocation of character array fails when appending a constant size 4 array

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 17 21:01:17 GMT 2024


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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #12 from anlauf at gcc dot gnu.org ---
Created attachment 58695
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58695&action=edit
Tentative patch

This patch fixes the ICE by ensuring to derive the element size of constant
character elements in the array constructor from these and not trying
to guess from the deferred-length element.

Currently reg-testing.


More information about the Gcc-bugs mailing list