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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:0fc1abcc46ecc34e8d2d7ec7167656ede2cd5690

commit r15-7726-g0fc1abcc46ecc34e8d2d7ec7167656ede2cd5690
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Tue Feb 25 17:15:47 2025 +0100

    Fortran: Fix ICE on associate of pointer [PR118789]

    Fix ICE when associating a pointer to void (c_ptr) by looking at the
    compatibility of the type hierarchy.

            PR fortran/118789

    gcc/fortran/ChangeLog:

            * trans-stmt.cc (trans_associate_var): Compare pointed to types
when
            expr to associate is already a pointer.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/associate_73.f90: New test.

Reply via email to