[Bug fortran/94030] [8/9/10 Regression] ICE equivalence of an integer and an element of an array of size n

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 2 07:32:58 GMT 2020


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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Mark Eggleston
<markeggleston@gcc.gnu.org>:

https://gcc.gnu.org/g:26191cec3421a157f4bafa7760cfd1bc4f90f0e5

commit r8-10157-g26191cec3421a157f4bafa7760cfd1bc4f90f0e5
Author: Mark Eggleston <markeggleston@gcc.gnu.org>
Date:   Thu Apr 2 08:32:05 2020 +0100

    fortran: ICE equivalence with an element of an array PR94030

    Deferred size arrays can not be used in equivalance statements.

    gcc/fortran/ChangeLog:

            Backport from master
            2020-04-02  Mark Eggleston <markeggleston@gcc.gnu.org>

            PR fortran/94030
            * resolve.c (resolve_equivalence): Correct formatting
            around the label "identical_types".  Instead of using
            gfc_resolve_array_spec use is_non_constants_shape_array
            to determine whether the array can be used in a in an
            equivalence statement.

    gcc/testsuite/ChangeLog:

            Backport from master
            2020-04-02  Mark Eggleston <markeggleston@gcc.gnu.org>

            PR fortran/94030
            * gfortran.dg/pr94030_1.f90
            * gfortran.dg/pr94030_2.f90


More information about the Gcc-bugs mailing list