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

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

https://gcc.gnu.org/g:7cd09938f5484b2c66ca381a15f1dc8b1ecb8d01

commit r17-375-g7cd09938f5484b2c66ca381a15f1dc8b1ecb8d01
Author: Paul Thomas <[email protected]>
Date:   Thu May 7 08:04:27 2026 +0100

    Fortran: Fix complex associate-name with inferred kind [PR125172]

    2026-05-07  Samir Ouchene  <[email protected]

    gcc/fortran
            PR fortran/125172
            * resolve.cc (gfc_fixup_inferred_type_refs): Update kind for
            INQUIRY_RE and INQUIRY_IM references on inferred complex
            associate-name.
            (resolve_variable): For an inferred-type associate-name with
            no subobject ref, refresh e->ts from sym->ts.
            (resolve_assoc_var): For an inferred-type complex/character
            associate-name, refresh sym->ts from the resolved target when
            only the kind differs.

    gcc/testsuite
            PR fortran/125172
            * gfortran.dg/associate_79.f90: New test.

Reply via email to