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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>:

https://gcc.gnu.org/g:1cd744a6828f6ab9179906d16434ea40b6404737

commit r14-11279-g1cd744a6828f6ab9179906d16434ea40b6404737
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Thu Feb 6 16:40:19 2025 +0000

    Fortran:  FIx ICE in associate with elemental function [PR118750]

    2025-02-06  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/118750
            * resolve.cc (resolve_assoc_var): If the target expression has
            a rank, do not use gfc_expression_rank, since it will return 0
            if the function is elemental. Resolution will have produced the
            correct rank.

    gcc/testsuite/
            PR fortran/118750
            * gfortran.dg/associate_72.f90: New test.

    (cherry picked from commit a03303b4d5b2ca58e5750a4d5bd735d85a091273)

Reply via email to