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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

--- Comment #13 from anlauf at gcc dot gnu.org ---
Also fixed on 12-branch:

commit r12-10398-gb482968801158116dd8ba3b15a4c29143b2a423a
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Tue May 23 06:46:37 2023 +0100

    Fortran: Fix assumed length chars and len inquiry [PR103716]

    2023-05-23  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/103716
            * resolve.cc (gfc_resolve_ref): Conversion of array_ref into an
            element should be done for all characters without a len expr,
            not just deferred lens, and for integer expressions.
            * trans-expr.cc (conv_inquiry): For len and kind inquiry refs,
            set the se string_length to NULL_TREE.

    gcc/testsuite/
            PR fortran/103716
            * gfortran.dg/pr103716.f90 : New test.

    (cherry picked from commit 842a432b02238361ecc601d301ac400a7f30f4fa)


The ICE is gone.  A remaining accepts-invalid on 11-branch could be fixed
by backporting the above if needed.

Thanks for the report to Gerhard, and to Paul for the above patch.  Closing.

Reply via email to