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

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

https://gcc.gnu.org/g:a03303b4d5b2ca58e5750a4d5bd735d85a091273

commit r15-7389-ga03303b4d5b2ca58e5750a4d5bd735d85a091273
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.

Reply via email to