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

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

https://gcc.gnu.org/g:71b1c265e9ae32b292b3c8c001060e42a413a890

commit r16-9993-g71b1c265e9ae32b292b3c8c001060e42a413a890
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.

    (cherry picked from commit 427be8a054a5f41bb3f0e6c28324f9a9ec8dd262)

Reply via email to