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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:427be8a054a5f41bb3f0e6c28324f9a9ec8dd262

commit r17-6474-g427be8a054a5f41bb3f0e6c28324f9a9ec8dd262
Author: Steven G. Kargl <[email protected]>
Date:   Thu Nov 19 21:07:19 2026 +0100

    fortran: ICE with transpose(reshape()) of character array ctor [PR128682]

    TRANSPOSE(RESHAPE()) of a character implied-do array constructor did ICE
    because the determination of the character length needs to look through
    the function.

            PR fortran/128682

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_get_expr_charlen): Get character length also
            from functions.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/transpose_reshape_char.f90: New test.

Reply via email to